您好,欢迎来到宝玛科技网。
搜索
您的当前位置:首页asp执行sqlserver的insertinto语句出现逗号错误

asp执行sqlserver的insertinto语句出现逗号错误

来源:宝玛科技网


谢谢你,你的意见提醒了我使用这语句: response.write(sql) '在这里输出一下sql语句 , 看看哪里有没有问题 response.end ' 停止 如下: sql="Insert InTo member2011(name,telphone,number,college,classname,iscadre,remark,position) values('"+sname+"',

谢谢你,你的意见提醒了我使用这语句:

response.write(sql) '在这里输出一下sql语句 , 看看哪里有没有问题
response.end ' 停止

如下:

sql="Insert InTo member2011(name,telphone,number,college,classname,iscadre,remark,position) values('"+sname+"','"+telphone+"','"+snumber+"','"+college+"','"+classname+"',"+iscadre+",'"+remark+",'"+position+"')"
response.write(sql) '在这里输出一下sql语句 , 看看哪里有没有问题
response.end ' 停止
Conn.Execute(sql)
Conn=nothing
Conn.Close

让我知道了问题所在,是因为我把那些变量放在了一个sub里面,成了局部变量,所以就在这个sub里面,那些变量为空。从而出问题了

Copyright © 2019- baomayou.com 版权所有 赣ICP备2024042794号-6

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务