asp不能修改SQL数据库
来源:百度知道 编辑:UC知道 时间:2024/06/11 05:14:36
sql="select * from "& biaoname &" where id="&id
rs.open sql,conn,1,3
if not rs.eof then
rs("a")=aa
rs("b")=bb
rs("c")=cc
rs("d")=dd
rs("e")=ee
rs.Update
response.Write "修改成功!"这句话可以执行
end if
上面可以返回 修改成功
但数据库中没有改变.
请教高手!!
rs.open sql,conn,1,3
if not rs.eof then
rs("a")=aa
rs("b")=bb
rs("c")=cc
rs("d")=dd
rs("e")=ee
rs.Update
response.Write "修改成功!"这句话可以执行
end if
上面可以返回 修改成功
但数据库中没有改变.
请教高手!!
rs.open sql,conn,3,3 用这个试试
或者
response.Write sql 出来看看!!到查询分析器里面运行一下..看看结果对不对
是不是你的那个id根本就没有对应的记录,
response.write(sql) 把输出的sql语句复制出来,到查询分析器中运行一下试试,看看执行结果。