高手在吗?帮帮忙。帮我写一条SQL语句

来源:百度知道 编辑:UC知道 时间:2024/05/19 13:22:19
高手在吗?帮帮忙。帮我写一条SQL语句
我要把把
表:clubuser
字段:clubuser_name 值:admin
字段:clubuser_password 值:0119b7514de4ba05

我要把
admin的密码改掉为:be5eaf0273245980

这条SQL语句应该怎么写?

update clubuser set clubuser_password = 'be5eaf0273245980' where clubuser_name = 'admin'

不要听一楼的,如果该表是用自动增长列做ID,删除再插入的纪录就是意义完全不同的了

update clubuser set clubuser_password = "be5eaf0273245980" [where clubuser_name = admin]

用这个看看
你也可以删除掉这一条记录,新插入一条记录也可以的

update clubuser set clubuser_password = 'be5eaf0273245980' where clubuser_name = 'admin'