>  기사  >  데이터 베이스  >  MySQL错误:ERROR 1064 (42000): use near 'order’解决

MySQL错误:ERROR 1064 (42000): use near 'order’解决

WBOY
WBOY원래의
2016-06-07 15:18:141594검색

环境 MySQL Sever 5.1 MySQL命令行工具 问题 ERROR 1064 (42000): You have an error inyour SQL syntax; check the manual that orresponds to your MySQL server versionfor the right syntax to use near 'order’ 解决 表名使用了关键字,数据库中命名要

环境

MySQL Sever 5.1 + MySQL命令行工具

 

问题

ERROR 1064 (42000): You have an error inyour SQL syntax; check the manual that orresponds to your MySQL server versionfor the right syntax to use near 'order’


 MySQL错误:ERROR 1064 (42000): use near 'order’解决


解决

表名使用了关键字,数据库中命名要避免使用关键字。Hibernate中查询语句为字段起别名,目的就是避免使用关键字。

 

参考资料

http://hi.baidu.com/yuiezt/item/fb563d6b4445b3156995e668

 

http://www.examw.com/biancheng/mysql/165562/



성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.