摘要:
#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... 阅读全文
摘要:
select * from $table where time > ( select date_sub(curdate(),interval 1 week) ) and time<now(); 阅读全文