MySQL学习 2 单表的增删改查
2018-11-04 本文已影响0人
8a590e918db0
建表

1 增
insert into 表名
(列1,列2……列n)
values
(值1,值2……值n)
插入指定列

插入全部列

插入部分列


2 改
update 表名
set 列1 = 值1,列2 = 值2,
……
列n = 值n
where expr

3 删
delete from 表名
where expr

4 查
select 列1,列2……列n
from 表名
where expr
