mysql - SQL 查询不是工作查询

标签 mysql sql

<分区>

有人知道问题出在哪里吗?它一定真的只是逗号或拼写错误,但我看了这 5 行 2 小时但仍然看不到它也许有人可以很快看到它。

错误 SQL查询:

INSERT INTO SalesOrder
(

Customer, ContactName, Phone, Email, BillingAddress1, BillingAddress2, BillingCity, BillingState, BillingCountry, BillingPostalCode, BillingAddressRemarks, ShipToCompanyName, ShippingAddress1, ShippingAddress2, ShippingCity, ShippingState, ShippingCountry, ShippingPostalCode, ShippingAddressRemarks, CurrencyCode, ExchangeRate, PricingScheme, PaymentTerms, TaxingScheme, Tax1Rate, Tax2Rate, CalculateTax2OnTax1, Tax1Name, Tax2Name, TaxOnShipping, Custom1, Custom2, Custom3, ItemName, ItemDescription, ItemQuantity, ItemQuantityUoM, ItemUnitPrice, ItemDiscount, ItemSubtotal, ItemTaxCode
) VALUES (
'Yu',  'Yau ',  '01224 580318',  '',  '',  '',  '',  '',  '',  '',  '',  '',  '',  '',  '',  '',  '',  '',  '',  'GBP',  '1',  '',  '',  '', 0, 0,  'FALSE',  '',  '',  'FALSE',  '',  '',  '',  'Vg0003',  'Apple Green', 2,  'box',  '15.5',  '0%';

MySQL said: 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Customer,ContactName,Phone,Email,BillingAddress1,BillingAddress2,BillingCity,Bil' at line 1 

最佳答案

缺少右括号:

VALUES ( ... ) ;
            ^^^

关于mysql - SQL 查询不是工作查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14735897/

相关文章:

MySql 函数

SQL Server - 如果列包含值,则按 ID 分组

使用撇号时出现 SQL 错误

php - 如何设置由数据库表填充的选择的第一个值?

mysql - 合并同一个表中的两个 SELECT

php - 从mysql中的表中获取最大值

sql - 按产品类别名称排序行

java - AliasToEntityMapResultTransformer.INSTANCE 不与 join 一起使用

mysql - SQL中的Join语句

mysql - 在 MySQL 中使用条件连接连接三个表