I have a MySQL table full of date's in the format DATE. How would I find the current date, and then find it in the table and echo out its position in terms of row_id
?
I understand I'm not providing any code with this question, but I'm struggling to find a place to start.
您可以使用CURDATE()
函数来匹配当前日期:
select row_id from date_table where date_column = CURDATE();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.