题解 | #更新记录(一)#
更新记录(一)
http://www.nowcoder.com/practice/bfe8ad2bddc540fc911614aa648868b3
考点:部分信息更新
对比区分
1.删除相关的整条记录,可结合where过滤
delete from 表名 where ....
2.直接替换数据
inplace into 表名 (字段名)values (替换内容)
3.替换单列、多列
update 表名 set 字段1=‘替换内容1’,字段2=‘替换内容3’ where ....
update examination_info set tag='Python' where tag = 'PYTHON'