随笔分类 -  4.2.1、Mysql

摘要:Mysql字符串截取,去掉时间,匹配日期等于今日 方案一 select time from jsb where date(time)=date(now()); 方案二 select time from jsb where left(time,10)=left(now(),10); 阅读全文
posted @ 2020-02-24 05:04 小纪的博客 阅读(1442) 评论(0) 推荐(0)
摘要:Mysql连接字符,字段函数concat() 可将多个字符串或字段连接,多个参数以逗号隔开 select concat('现在是:',new_date) from work 阅读全文
posted @ 2020-02-24 03:55 小纪的博客 阅读(335) 评论(0) 推荐(0)