Jump to content

how do i select all rows from table where timeStamp is older than 7 days of current date


carlfaulkner

Recommended Posts

I have a field timeStamp within my table which is type timestamp with a format 2011-09-30 23:11:12.The attribute is on update current_timestamp.can i run an sql command to select all rows that are older than 7 days from date when command is executed.something like select * from tbl where timeStamp < current_timestamp - 30

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...