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`

目录
相关文章
|
6月前
|
索引 Python
row[i] = col[j] = TrueIndexError: list assignment index out of range
row[i] = col[j] = TrueIndexError: list assignment index out of range
|
SQL 数据库
INSERT DESC UPDATE SELECT
INSERT DESC UPDATE SELECT
103 0
|
存储 SQL 关系型数据库
1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column的解决办法
1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column的解决办法
176 0
|
程序员 Go API
译|Errors are values
译|Errors are values
68 0
|
数据库
Data truncation: Incorrect date value: ‘2022-11-28T16:00:00.000Z‘ for column ‘start_date‘ at row 1
Data truncation: Incorrect date value: ‘2022-11-28T16:00:00.000Z‘ for column ‘start_date‘ at row 1
263 0
|
SQL
ORDER BY && GROUP BY
ORDER BY && GROUP BY
127 0
ORDER BY && GROUP BY
|
Python
data.values.tolist()的用法
data是一个数据集, columns = data.columns wind = data[columns[2]] wind = wind.tolist() data = data.values.tolist(), 介绍这个python代码
1557 0
|
SQL Java 数据库连接
mybatis 批量插入 Column count doesn‘t match value count at row 1
mybatis 批量插入 Column count doesn‘t match value count at row 1
173 0
|
SQL 关系型数据库 MySQL
【已解决】SELECT list is not in GROUP BY clause and contains nonaggregated column
MySQL5.7.5后only_full_group_by成为sql_mode的默认选项之一,这可能导致一些sql语句失效。
351 0
|
存储 索引
成功解决ValueError: If using all scalar values, you must pass an index
成功解决ValueError: If using all scalar values, you must pass an index