向你请教

zhanghua4109 2005-02-25 01:51:12
我在用access作为数据库,用vc++做为开发语言,我用以下语句:trSQL = "INSERT INTO jijian (personid, anclass, nclass, begin, banci, guige, zhekou) VALUES ('"+personid+"', '"+anclass+"', '"+nclass+"', '22', '"+banci+"', '"+guige+"', '"+m_strZhekou+"')";
来插入数据,但,提示:error:-2147217900 msg:idispatch error #3092 description :insert into 语句的语法错误.
请高手指点.但我去掉一个插入值,就可以插入了.
...全文
70 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
changechange 2005-02-25
  • 打赏
  • 举报
回复
请参考以下文章及其相关文章:

新手来看:找不到帮助的来看:jet sql保留字
http://access911.net/?kbid;74FAB61E16DC



BEGIN 是保留字
DebugXP 2005-02-25
  • 打赏
  • 举报
回复
trSQL = "INSERT INTO [jijian] ([personid], [anclass], [nclass], [begin], [banci], [guige],[zhekou]) VALUES ('"+personid+"', '"+anclass+"', '"+nclass+"', '22', '"+banci+"', '"+guige+"', '"+m_strZhekou+"')";

7,714

社区成员

发帖
与我相关
我的任务
社区描述
Microsoft Office Access是由微软发布的关系数据库管理系统。它结合了 MicrosoftJet Database Engine 和 图形用户界面两项特点。
社区管理员
  • Access
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧