如何从mysql数据库中查出所需要的值然后和系统时间比较

举个例子,这个获取系统时间的方法我知道,但是不知道怎么样取出一个字段与系统时间比较,谢谢
2026年09月28日 07:44
有2个网友回答
网友(1):

mysql中获取系统时间的方法:
mysql> select now();
mysql> select sysdate();
mysql> select curdate();
mysql> select current_date;
mysql> select curtime();
mysql> select current_time;

网友(2):

貌似简单呢