找回密码
 注册
LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 759|回复: 1

数据库更新纪录问题(图)

[复制链接]
发表于 2006-1-24 22:26:17 | 显示全部楼层 |阅读模式
<img src="attachments/dvbbs/2006-1/200612414251960867.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2006-1/200612414251960867.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />
我用数据库存储的过程当中,设计了一个表,现在已经做到可以添加和删除记录,做到更改记录的地方总是报错,提示是数据库语法错误,我拦截到的语句是
UPDATE AnalogInputVoltage SET Max=8.00,Min=7.00,Units=0,Terminal=0 where Channel='Dev1/ai5';
仔细分析并没有语法错误。其中Max和Min在Access中都是double类型,可以成功的添加和删除记录,Terminal是一个enum类型的输出值。现在更改部分的代码总是报错,大家可以看图。
帮忙分析分析。


<img src="attachments/dvbbs/2006-1/200612414255953386.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2006-1/200612414255953386.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />

这些代码我在Access运行通过了的。在NI论坛上没有得到有效的解决。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2006-1-25 08:55:12 | 显示全部楼层
<>兄弟您先看看是不是在这个地方出错,还是在前面就已经出错了呢?我以前做过出错的,很多要传到EXECUTE这个节点以后才报错,它好像提示是连接出错!而不是更新出错,你找找是哪个节点出错了,可以把后面板的灯点亮试试看!大家多交流!</P>
回复 顶

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2026-9-29 05:17 , Processed in 0.042922 second(s), 11 queries , Gzip On, File On.

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表