C#中调用SQL的udate语句更新某一行的某一个数据如何做?

来源:百度知道 编辑:UC知道 时间:2024/05/26 15:50:52
例如
NAME 生日 MENOY
张三 11.1 500
李四 11.2 500
王五 11.3 500
我想用UPDATE语句把李四的MENOY变成600要怎么做?谢谢

update 表名 set menoy=600 where name='张三'

update <table_name> set menoy=600 where name='李四';

update 表名 set menoy=600 where name='李四' 前提是 name字段的值是唯一的,只有一个,不然会把所有name为 李四 的 menoy 改为600

update 表名 set menoy=600 where = 李四

LZ没学过SQL?