![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
昨夜听雨
这个作者很懒,什么都没留下…
展开
-
【MySQL】常见问题及其解决方案
MySQL进行字符串比较时发生错误 java.sql.SQLException: Illegal mix of collations (utf8_esperanto_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='; 解决方法: 1、查看表之间的编码是否一致; show create table <表...原创 2020-02-24 23:06:31 · 425 阅读 · 0 评论 -
【MySQL】常用命令
# 获取当前时间 select now(); # 获取当前时间戳 select unix_timestamp() * 1000; # 时间转时间戳 select unix_timestamp('2018-01-15 09:45:16') * 1000; # 时间戳转时间 select from_unixtime(time / 1000); # 时间戳格式化 select from_uni...原创 2020-03-11 13:50:37 · 255 阅读 · 0 评论