Reputation: 2599
I want to have a select statement inside the mysql trigger that has the following:
SELECT id WHERE date = TODAY'S TAKE in Y-m-d format
How do I get today's date in Y-m-d format in the select statement above?
thanks!
Upvotes: 0
Views: 138
Reputation: 8334
Use the CURDATE()
function.
SELECT id WHERE date = CURDATE();
Upvotes: 1