开发者

mysql triggers date

开发者 https://www.devze.com 2023-03-27 02:14 出处:网络
I want to have a select statement inside the mysql trigger that has the following: SELECT id开发者_Python百科 WHERE date = TODAY\'S TAKE in Y-m-d format

I want to have a select statement inside the mysql trigger that has the following:

SELECT id开发者_Python百科 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!


Use the CURDATE() function.

 SELECT id WHERE date = CURDATE();
0

精彩评论

暂无评论...
验证码 换一张
取 消