![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mysql
文章平均质量分 61
一个猴子请来的救兵
生死有命 富贵在天
展开
-
MySQL常用日期函数,日期相减,按天、周、月查询
MySQL日期函数select now(); -- 获取当前时间select DAYOFWEEK(now()); -- -- 1=星期天,2=星期一,3星期二,...select WEEKDAY(now()); -- --0=星期一,1星期二,...select DAYOFMONTH(now()); -- --本月的第几天(几号)select DAYOFYEAR(now());原创 2017-07-13 17:59:32 · 6238 阅读 · 0 评论 -
项目启动报错‘java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.’;
项目启动报错‘java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.’;检查本地MySql版本:【C:\ProgramData\MySQL\MySQL Server 8.0】检查项目jar包版本:【mysql-jdbc-5.1.20.jar】初步断定是由于jar包版本过...原创 2018-11-30 10:21:05 · 2072 阅读 · 0 评论