修改更新表中的数据
语法格式:
UPDATE 表名 SET 字段名1 = 值1, 字段名2 = 值2, ... WHERE条件;
注意:没有where条件限制的话,则整张表数据全部被更新
例1:将下面的t_testtable_002表中的name为张三的改为周八,classno为clsss001的改为1班
update t_testtable_002 set name = '周八',classno = '1班' where name = '张三' and classno ='class001';
例2:将例1中的where限制条件去除
没有where条件,整张表对应数据全部被更新
update t_testtable_002 set name = '周八',classno = '1班' ;