摘要: 问题重现 比如我有两个表 mysql> select * from user; + + + + | id | name | age | + + + + | 1 | A | 9 | | 2 | B | 11 | | 3 | C | 15 | | 4 | D | 13 | + + + + 4 rows 阅读全文
posted @ 2020-09-17 19:32 露娜妹 阅读(870) 评论(0) 推荐(0) 编辑
摘要: 一 日期函数 1. 取本月1号 mysql> select concat(date_format(now(), '%Y-%m'),'-01'); + + | concat(date_format(now(), '%Y-%m'),'-01') | + + | 2020-09-01 | + + 1 ro 阅读全文
posted @ 2020-09-17 17:06 露娜妹 阅读(171) 评论(0) 推荐(0) 编辑