Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

SQLite Time Select?

Guest
Feb 15, 2013 Feb 15, 2013

First time using SQLite in AIR and having trouble with a select. I have a TEXT type field with a time stamp in it - with the form yyyy-mm-dd hh:mm:ss

I need to select all records within the last hour.

Found some selects that work with MySQL, but haven't gotten anything to work with SQLite thus far.

TOPICS
ActionScript
781
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 15, 2013 Feb 15, 2013
LATEST

I think I mostly have it. Aside from not using timezones when storing the timestamp, the select is something like this:

select * from users where datetime(timeentered) > datetime('now','-1 hours')

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines