Afficher un message
Vieux 29/09/2007, 23h04   #1
andrecal
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut SELECT all records that occurred in the last five minutes or less

I have a table with a TIMESTAMP entry, and I would like to find a
query that will look at this table and only return results that shows
the TIMESTAMP to be five minutes ago or less.

Something along these lines:
SELECT * FROM table_name WHERE entry_date BETWEEN NOW() AND NOW()-5
minutes ago

entry_date is a full timestamp

any appreciated,
AN

  Réponse avec citation
 
Page generated in 0,04816 seconds with 9 queries