-- 一次写入多入多行 insert into [表名]([字段列表]) select [字段值列表] union all select [字段值列表] union all select [字段值列表] union all [...] select [字段值列表]-- 一次修改好几行的内容或好几列的内容 update [表名] set [字段]=[值] where [条件]
update 表名 set 列名=’你想要修改的值‘ where 列名=‘被修改的值’
update tablename set coulumn='修改后值' where 条件 是想条件中有多个字段?
-- 一次写入多入多行
insert into [表名]([字段列表])
select [字段值列表] union all
select [字段值列表] union all
select [字段值列表] union all
[...]
select [字段值列表]-- 一次修改好几行的内容或好几列的内容
update [表名]
set [字段]=[值]
where [条件]
where 列名=‘被修改的值’
是想条件中有多个字段?