数据导入数据库
我在赋值的时候,当给数据库中数据类型为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型的话,同样的赋值语句,同样的其他操作,就不会再出项上述错误了。但是,我要录入的是分数,必须要把变量设为浮点型,请高手帮我解答一下。