关于update的一个问题,请赐教
wsm 2002-04-28 10:23:08 我有一个数据表,x1、x2可为空
id x1 x2
1 <null> <null>
2 <null> <null>
我用的是ado,用asp写的语句
<%
......
sql="select x1 from 表名 where id='1'"
rs.open sql,conn,1,3
rs("x1")="AA"
rs.update
%>
结果是:我的数据表中的两条记录的x1字段都变成了“AA”
不知道为什么会这样?
还有:如果sql="select * from from 表名 where id='1'" 结果就是对的。