日期:2014-05-17  浏览次数:20972 次

数据导入数据库
我在赋值的时候,当给数据库中数据类型为float型的变量赋值时,预览网页是就会出错。如变量zfa在数据库中为float型变量,赋值语句为zfa=request("zfa") 调试程序时不会出错,但在网页中提交数据入库时浏览器就会弹出错误提示:"An error occurred on the server when processing the URL. Please contact the system administrator.  
If you are the system administrator please click here to find out more about this error."
但若在数据库中把数据类型zfa的数据类型改为nvarchar型的话,同样的赋值语句,同样的其他操作,就不会再出项上述错误了。但是,我要录入的是分数,必须要把变量设为浮点型,请高手帮我解答一下。

------解决方案--------------------
http://www.ixinchen.com/bbs/t/1654.html
第三张图,看图配置
------解决方案--------------------
http友好提示去掉 


sql 语句 数字就不要加单引号,其它都加
------解决方案--------------------
试试用sql语句更新,而不是用rs.update更新
------解决方案--------------------
rs("zfa")=Round(zfa,2)