批量插入SQL Server插入失败
回答
收藏

批量插入SQL Server插入失败
20

高建秋
2025-08-14 11:43·浏览量:273
高建秋
发布于 2025-08-14 11:43273浏览

使用市场工具连接SQL Server数据库,连接成功,但是执行批量插入到数据库的时候,

执行语句:

INSERT INTO gather_currency_exchange_rate (`exchange_rate_base`, `from_currency`, `exchange_rate`, `to_currency`, `gather_date`)

提示:插入失败, 第1条数据出错,失败原因为(156, b"Incorrect syntax near the keyword 'INSERT'.DB-Lib error message 20018, severity 15:\nGeneral SQL Server error: Check messages from the SQL Server\nDB-Lib error message 20018, severity 15:\nGeneral SQL Server error: Check messages from the SQL Server\n")

这个是什么问题 要怎么解决?


收藏
全部回答1
最新
发布回答
回答