0
sqltreat posted
get result of yesteraday 's date in MySQL?
How to get result of yesterday ' date by sql query in MySQL ?Database table name : users
Field list : Id(Primary Key) , username , password , register_date (field type : dateTime)
i want to get all user who registered yesterday
select * from users where register_date = 'yesterday'
i can put static date here but i need dynamic date . it means i need registered user for yesterday.