摘要:
#title: 常用的日期推算处理#auther: 小强(占卜师) #date: 2007-12-25#取得当前日期set @dt=CURDATE();select @dt;#当前日期这个月的第一天select concat(left(@dt,8),'1');#当前日期这个月的最后一天select date_sub(concat(left(date_add(@dt,INTERVAL 1 MONTH... 阅读全文
posted @ 2008-09-04 04:41
二宝的博客
阅读(175)
评论(0)
推荐(0)
摘要:
select * from $table where time > ( select date_sub(curdate(),interval 1 week) ) and time<now(); 阅读全文
posted @ 2008-09-04 04:40
二宝的博客
阅读(188)
评论(0)
推荐(0)

浙公网安备 33010602011771号