开发者

mysql triggers date

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜