完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,所以我的程序需要一个部分来从数据库中的特定行中提取数据。
然后,使用Update and Execute Sql命令更改数据库中的数据并将其发送回来进行更新。 所以我拉了Update.Vee文件的Demo示例,一切似乎都很好用。 但是,如果您更改正在更新的数字,让我们说一个名称并尝试更新它,您将意识到一个很好的错误“ExecuteNonQuery”将不允许您这样做。 所以,感谢您制作演示,演示如何使用唯一可用的功能,以及不将限制信息放在帮助文件中的任何位置。 最后,感谢安捷伦让我为半成品软件支付超过3千美元。 一些更新,以使这和其他限制工作将不胜感激。 如果有人知道如何更新mdb中的整行,请告诉我。 更新行示例更新了所有行,但我很难找出允许我仅更新第2行中的字段的代码。 以上来自于谷歌翻译 以下为原文 Hello, So my program needs a part that will pull the data from a specific row in the database. The data from the database is then changed and sent back to be updated using the Update and Execute Sql command. So i pulled the Demo Example of the Update.Vee file Everything seems to work great. However if you change the numbers that are being updated to lets say a name and try to updated it you will realize that a nice error "ExecuteNonQuery" will not allow you to do it. So thank you for making a demo that will show me how to use the only function available and also for not putting the limitation information anywhere in the help file. In the end thank you Agilent for making me pay over $3k for a half made software. Some updated to make this and the other limitations work would be appreciated. If anybody know how to updated an entire row in mdb please let me know. The update row example updated all the rows, but I am having hard time figuring out the code that will allow me to only update the fields in row 2 for example. |
|
相关推荐
2个回答
|
|
您好,当您将Height = 105的值更改为高度=测试时,问题就变得很好了,因为该值不是程序实际错误输出的数字。
问题是如何仍然不可能,这是一个问题? 感谢您的答复。 以上来自于谷歌翻译 以下为原文 Hello, That works just fine the problem becomes when you change the value of Height=105 to lets say Height=test since the value is not a number the program will actually error out. The question is how is still not possible, and y this is a problem? Thank you for your response. |
|
|
|
提示错误是由于'test'是字符串类型,而实际上Height列被定义为int类型。如果您坚持将值更改为'test',则需要更改Height列数据类型
首先是文本字段。 我搜索vee db对象,但我看不到ALTER TABLE函数,所以它可以修改字段数据类型,太糟糕了:? 例如:ALTER TABLE ALTER COLUMN char(100); 以上来自于谷歌翻译 以下为原文 The error prompted is due to 'test' is an string type while in fact the Height column was defined as an int type. If you're insist to change the value to 'test', you're required change the Height column data type to text field in the first place. I search through vee db objects, but i cant see ALTER TABLE function so that it can modify field data type,too bad :? eg:ALTER TABLE ALTER COLUMN char(100); |
|
|
|
只有小组成员才能发言,加入小组>>
1230 浏览 0 评论
2351 浏览 1 评论
2160 浏览 1 评论
2026 浏览 5 评论
2908 浏览 3 评论
974浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
707浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
808浏览 0评论
1230浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 07:34 , Processed in 1.320723 second(s), Total 84, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号