![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
不想再做猿了
行百里者半九十。
展开
-
sql之left join、right join、inner join的区别
left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录 right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录inner join(等值连接) 只返回两个表中联结字段相等的行举例如下: --------------------------------------------表A记录如下:aID aNum1转载 2017-06-21 16:00:57 · 216 阅读 · 0 评论 -
mysql中时间比较的实现
MySql中时间比较的实现 unix_timestamp 函数可以接受一个参数,也可以不使用参数。它的返回值是一个无符号的整数。不使用参数,它返回自1970年1月1日0时0分0秒到现在所经过的秒数,如果 使用参数,参数的类型为时间类型或者时间类型的字符串表示,则是从1970-01-01 00:00:00到指定时间所经历的秒数。有了这个函数,就可以很自然地把时间比较转换为一个无符号整转载 2017-06-27 11:16:28 · 379 阅读 · 0 评论 -
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)解决方法
刚安装的mysql,在项目运行时出现java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)信息如下:09:58:53,666 |-WARN in ch.qos.logback.core.db.DriverManagerConnectionSource@298f860原创 2017-08-11 10:16:17 · 3794 阅读 · 0 评论 -
mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
从一个数据库数据迁移到本地localhost程序在调用到数据库的视图时报错,直接在数据库中打开视图时也报错,类似:mysql 1449 : The user specified as a definer ('montor'@'%') does not exist经查,是权限问题,解决办法:运行:grant al转载 2018-02-02 17:00:50 · 987 阅读 · 0 评论