insert into 语句的语法错误的解决方法(The solution to the syntax error of the insert into statement).docVIP
- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
insert into 语句的语法错误的解决方法(The solution to the syntax error of the insert into statement)
insert into 语句的语法错误的解决方法(The solution to the syntax error of the insert into statement) The solution to the syntax error of the Insert into statement Some time ago vb.net+access discovered a problem. Do the exercises I defined a very simple select query in SQL Server Enterprise Manager is no problem, but in.Net IDE debugging on the pass, using OleDbCommandBuilder Insert into syntax error solution. Later found to be field the table of the database name, baidu found the following stuff -------------------------------------------------------------------------------- When we use the C# database access program, there are 3 kinds of methods: ODBC, oleDb, ado.net; in fact, I think for the three methods, this problem will appear, but this time I have a problem with the oleDb method, we use oleDb to describe. Problem description: I use OleDb to write data to Access data, the example source code is as follows: String sql= select * from MultiTable; OleDbDataAdapter, oleSub=new, OleDbDataAdapter (SQL, oleCn); OleDbCommandBuilder cb1=new OleDbCommandBuilder (oleSub); DataSet, ds=new, DataSet (); OleSub.Fill (ds. MultiTable); DataTable, dt=ds.Tables[, MultiTable]; DataRow, dr=dt.NewRow (); Dr[PRSERV]= WS +index.ToString (.PadLeft) (6,0); Dr[NUMBER]= 00063; .................................... Dt.Rows.Add (DR); OleSub.Update (DS, MulitTable); This code is compiled without problems, but at runtime it sends a runtime error: Insert into statement syntax error.. When using OleDbAdapter, I did not specify the Insert statement, but used OleDbCommandBuilder to automatically generate the Insert statement. Think about it carefully. Why did it happen? My conclusion is that it is possible that the field name in this table uses the reserved words of the access system. So I created a query in Access and wrote a insert SQL to prove my conclusion was correct. NUMBER is a reserved word of the system. How can I modify it? In general, the easiest way is to get rid of the name of the field and chang
您可能关注的文档
- copy of gsm系统消息的介绍 x(Copy of GSM system message introduction x).doc
- cool 英语(酷英语).doc
- copy详细用法大全(Copy detailed usage Daquan).doc
- could you please clean your room 说课稿(请你打扫你的房间说课稿).doc
- co(有限公司).doc
- cpu与gpu的作用和位置分析(Role and position analysis of CPU and GPU).doc
- cpa考试中,如何一次性通过6门档(CPA test, how to pass through 6 files at one time).doc
- cpu占用过高的原因及解决方法(Reasons for excessive use of CPU and Solutions).doc
- cost_spend与take的区别(The difference between cost_spend and take).doc
- cool edit效果器的使用技巧(How to use the cool edit effector).doc
- internet的基本知识(Basic knowledge of Internet).doc
- installshield脚本编程基本语法(InstallShield脚本编程基本语法).doc
- invertions(倒装归纳)(invertions (倒装归纳)).doc
- ios 反射获取属性,序列化成xml(IOS reflection gets attributes and is serialized into XML).doc
- io口模拟uart演示程序(IO analog UART demo program).doc
- io模拟spi时序(IO simulation SPI timing).doc
- iphone ios使用技巧(iphone ios使用技巧).doc
- iphone4实用操作手册(IPhone4 practical operation manual).doc
- iso14000系列标准产生背景及简介(ISO14000 series standard background and introduction).doc
- iq推理题大全(IQ reasoning questions Daquan).doc
最近下载
- 半导体物理学(第8版)刘恩科课后习题答案解析.pdf
- 《汽车理论》清华大学余志生版.pdf VIP
- 华为 GPON OLT 组播业务配置.pdf VIP
- 文华财经期货软件指标公式源码九转系列指标.doc VIP
- ISO37001-2016反贿赂管理体系手册与全套程序文件汇编.docx
- 信捷x-sight视觉系统使用手册v2.1a.pdf
- 二+宁夏闽宁镇:昔日干沙滩,今日金沙滩(教学设计)-【中职专用】高二语文上(高教版2023职业模块).docx
- GB50303-2015建筑电气工程施工质量验收规范.docx VIP
- 婴幼儿的科学喂养课件.pptx VIP
- 造林工程--施工工期与保证措施-工程进度计划及保证措施.doc VIP
文档评论(0)