|
蓝森林 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")&"' |
|