我的SQL插入语法有什么问题?引号还是方括号或...?

发布于 2025-02-12 07:08:09 字数 514 浏览 0 评论 0原文

Here is my SQL INSERT statement

sSqlInsert = "Insert into GruppoColl Values (12343009,TRUE,'30/06/2022 11:57:35',RD,Descrizione,TRONCHETTI_RAME_12.IPT,20050082,'Tipo B','Bombato', 0,Oransen,“在”)“

这是错误消息:

Hresult = 0x80040E10 消息=一个或多个必需参数的值。

我知道“ in”是一个保留的单词,“ tipo b”有空间,所以我把它们放在单个引号中。

这是访问中表的定义:

”在此处输入图像描述

Here is my SQL INSERT statement

sSqlInsert = "Insert into GruppoColl Values (12343009,TRUE,'30/06/2022 11:57:35',RD,Descrizione,TRONCHETTI_RAME_12.IPT,20050082,'Tipo B','Bombato',0,oransen,'In')"

Here is the error message:

HResult=0x80040E10
Message=No value given for one or more required parameters.

I know 'In' is a reserved word and that 'Tipo B' has spaces so I've put them in single quotes.

Here is the definition of the table in Access:

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文