CURTIME()
返回当前时间以“HH:MM:SS'或'HHMMSS' 格式的值,具体格式是根据该函数是否用在字符串或数字语境中。该值表示在当前时区。
mysql> SELECT CURTIME(); +---------------------------------------------------------+ | CURTIME() | +---------------------------------------------------------+ | 23:50:26 | +---------------------------------------------------------+ 1 row in set (0.00 sec) mysql> SELECT CURTIME() + 0; +---------------------------------------------------------+ | CURTIME() + 0 | +---------------------------------------------------------+ | 235026 | +---------------------------------------------------------+ 1 row in set (0.00 sec)
¥ 我要打赏 纠错/补充 收藏