near ‘order values(‘1‘,‘1‘,‘100‘,‘10.25‘)‘ at line 1

简介: near ‘order values(‘1‘,‘1‘,‘100‘,‘10.25‘)‘ at line 1

报错信息:near 'order values('1','1','100','10.25')' at line 1

报错原因:order是mysql的保留字

解决办法:改表名为orders,或者把sql语句中order表名改成`order`

目录
相关文章
|
11月前
|
SQL 数据库
INSERT DESC UPDATE SELECT
INSERT DESC UPDATE SELECT
72 0
|
11月前
|
程序员 Go API
译|Errors are values
译|Errors are values
52 0
|
SQL
ORDER BY && GROUP BY
ORDER BY && GROUP BY
65 0
ORDER BY && GROUP BY
|
SQL 关系型数据库 MySQL
【已解决】SELECT list is not in GROUP BY clause and contains nonaggregated column
MySQL5.7.5后only_full_group_by成为sql_mode的默认选项之一,这可能导致一些sql语句失效。
189 0
|
存储 索引
成功解决ValueError: If using all scalar values, you must pass an index
成功解决ValueError: If using all scalar values, you must pass an index
|
SQL Java 数据库连接
JPA异常:Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
JPA异常:Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
1784 0
test case id - hash generation logic
Created by Wang, Jerry, last modified on Jul 06, 2016
107 0
test case id - hash generation logic