Results 1 to 3 of 3

Thread: How to get updated rows from a table (SqLite) with time stamp.

  1. #1
    Join Date
    May 2010
    Location
    Bangalore, India.
    Posts
    28
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to get updated rows from a table (SqLite) with time stamp.

    Hi wanted to check
    What is the Query to get the updates from the table (updated (added, edited, deleted row information) rows from last 5 mins/1 hour/5 hours/24 hours.)

    like for example

    SELECT * FROM ORDERS
    WHERE ROW CHANGE TIMESTAMP FOR ORDERS >
    CURRENT TIMSTAMP - 24 HOURS;
    returns all the rows that have been changed in the last day


    Thank you

  2. #2
    Join Date
    Feb 2008
    Posts
    98
    Thanks
    2
    Thanked 24 Times in 24 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to get updated rows from a table (SqLite) with time stamp.

    You should ask that question on some SQLite forum or mailing list. For example the sqlite-users mailing list.

  3. The following user says thank you to victor.fernandez for this useful post:

    meena (13th May 2010)

  4. #3
    Join Date
    Oct 2009
    Posts
    151
    Thanks
    6
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to get updated rows from a table (SqLite) with time stamp.

    You may want to have a look at this http://www.sqlite.org/lang_datefunc.html and to make your query slightly more versatile you can bind the time variable http://doc.trolltech.com/4.6/qsqlquery.html.
    Got to keep the loonies on the path ...

  5. The following user says thank you to JD2000 for this useful post:

    meena (13th May 2010)

Similar Threads

  1. Position of rows in table
    By Slewman in forum Qt Programming
    Replies: 10
    Last Post: 18th February 2010, 15:13
  2. Refreshing one or more rows in a table view
    By William Wilson in forum Qt Programming
    Replies: 4
    Last Post: 25th May 2009, 00:10
  3. Show System Time Stamp ??
    By dheeraj in forum Qwt
    Replies: 3
    Last Post: 21st April 2008, 11:54
  4. file time stamp preservation
    By baray98 in forum Qt Programming
    Replies: 0
    Last Post: 8th April 2008, 00:13
  5. Removing rows from table model
    By steg90 in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2007, 20:36

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.