Py学习  »  DATABASE

mysql8.0_159;之后,在联合之前不能再使用mysql查询语法错误_

robin • 5 年前 • 1513 次点击  

SQL

select * from t_google_receipt limit 1 union select * from t_old_google_receipt limit 1;

我代码中的SQL在我的旧MySQL中执行成功(服务器版本:5.6.17-log MySQL Community Server(GPL)),但在更新到MySQlgroup(服务器版本:8.0.11 MySQL Community Server-GPL)后执行失败,

错误1064(42000):SQL语法中有错误;请检查 与右边mysql服务器版本相对应的手册 在'union select*from t_old_google_receipt limit 1'附近使用的语法 在第1行;

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/40786
 
1513 次点击  
文章 [ 3 ]  |  最新文章 5 年前