一个表
Id ;regTime
Id 是自动增量 regTime 是 DateTime;
regTime 在插入时 用NOW()
请问
我如何检索出10天内的数据
不知道是不是用类似的语句
select * from table where now()-? <regTime;
Id ;regTime
Id 是自动增量 regTime 是 DateTime;
regTime 在插入时 用NOW()
请问
我如何检索出10天内的数据
不知道是不是用类似的语句
select * from table where now()-? <regTime;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货