Thursday, 5 September 2013

select entries from database where db timestamp is 10 minutes less than current timestamp

select entries from database where db timestamp is 10 minutes less than
current timestamp

I have a column named time_stamp in my table. I need to get the latest 2
entries that are entered 10 minutes before the current time.. example: if
current time is 2013-09-06 09:47:37 , then I need to get the two rows
entered 10 minutes before. please anybody help me with the query.. ??

No comments:

Post a Comment