MySql
iteye_13651
这个作者很懒,什么都没留下…
展开
-
MySql日期加减
createtime+INTERVAL "+1+" month (createtime + INTERVAL 1 month)-INTERVAL (day(createtime) -1) day2009-01-15 15:49:33 · 96 阅读 · 0 评论 -
MySql日期格式化
DATE_FORMAT(d.createtime,'%Y-%m')2009-01-15 15:50:41 · 105 阅读 · 0 评论 -
用MYSQL截取字符串
用MYSQL截取字符串 SELECT title,IF(CHAR_LENGTH(title)>10,CONCAT(LEFT(title,8),'...'),title) AS dispaly_titile FROM article ;2009-03-25 20:50:00 · 110 阅读 · 0 评论 -
日期段交叉
SELECT * FROM `t_order` where (('2008-01-08'>=startDate) and ( '2008-01-03'<=startDate)) or (('2008-01-03'<=endDate) and ('2008-01-08'>=endDate)) or (('2008-01-03'>=startDate) and ('200...2009-04-03 09:46:35 · 104 阅读 · 0 评论