求ACCESS SQL 语句

来源:百度知道 编辑:UC知道 时间:2024/06/24 08:06:08
网站是ACCESS+ASP 后台有执行SQL语句功能。
要把表 product 中的 money 字段值全部改为10,前提是同字段中的ID值等于2

update product set money=10 where id=2

不明白什么同字段
``就这么写了

sql="select * from product where id=2 "
set rs=server.createobject("adodb.recordset")

rs.open sql,conn,1,3
Rs("money")= 10
rs.update

rs.close
set rs=nothing