蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 应用编程


    

蓝森林 http://www.lslnet.com 2006年8月25日 8:28

[asp]sql语句错误

<%
              set rs=server.createobject("adodb.recordset")
              sqltext="update student set stu_id='"&stu_id&"',password='"&pwd&"',realname='"&realname&"',sex='"&sex&"',age='"&age&"',email='"&email&"',phone='"&phone&"',address='"&address&"',Speciality='"&specil&"',Faculty='"&yx&"' where stu_id='"session("ok")"'"
              rs.execute sqltext  
%>  
Microsoft VBScript 编译器错误 (0x800A0401)
语句未结束
请问高手哪儿出错了???字段全是字符型,谢谢了!!!!

如果是在ACCESS里,请把password 换成 [password] 因为它是关保留字,
另,请布局好在,很验难看.

stu_id='"session("ok")"'改为:stu_id='"&session("ok")&"'




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com