Hello Gregory,

> What, is the easest way to select all the records created in the last 20
min
> stay based on a column that has a timestamp record.

select * from mytable
where some_timestamp > date_add(current_timestamp, interval -15 minute)

Martijn Tonies
Database Workbench - development tool for MySQL, and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to