1、update tb_member a set C_MEMBER_STATE=13 where C_MEMBER_STATE=11;
2、update tb_member a set V_PASSWORD='C4CA4238A0B923820DCC509A6F75849B' where V_PASSWORD is null
条件为空值;
3、在一个字段值后面增加一个
update table a set a.A=A+100 where a.A=..
本文介绍了三种SQL操作:更新特定成员状态、设置空值密码和字段值增加。通过实例展示了如何使用SQL进行数据库更新,适用于数据库管理和维护场景。
1、update tb_member a set C_MEMBER_STATE=13 where C_MEMBER_STATE=11;
2、update tb_member a set V_PASSWORD='C4CA4238A0B923820DCC509A6F75849B' where V_PASSWORD is null
条件为空值;
3、在一个字段值后面增加一个
update table a set a.A=A+100 where a.A=..
641
9131
2634

被折叠的 条评论
为什么被折叠?