常用函数数学函数
now(): 获取当前系统时间 , 时间格式包括年月日时分秒;
select now() as 当前系统时间;
curtime() :只获取系统的时分秒
select curtime();
curdate(): 只获取系统的年月日
select curdate();
------------------------------------------数学函数------------------------------------------
向上取舍:
select ceil(2.3)
向下取舍:floor(数值)
select floor(2.4)
随机数:rand():不用接受参数,返回的是0-1之间的小数
select rand()

浙公网安备 33010602011771号