一、新增数据表的数据
1.添加一行(insert into 表名(列名)values(对应列名添加的数据,对应列名添加的数据,))
insert into Table_1(name,ID,birthday) values ('张小三',1,'1989-8-2')
insert into Table_1 values ('小美',1) 字段都添加数据时,字段名可省略
insert Table_1(name,ID) values ('',2)
2.添加多行(insert into 表名(列名)select 对应列名添加的数据 union select 对应列名添加的数据)
insert into Table_1(name,id)
select '小明',2 union
select '小强',3
二.更新数据表记录
1.更新表中记录(update 表名 set 列名='',列名='')
单个
update Table_1 set ID=3
多个
update Table_1 set name='小美',id=1
2.根据指定条件更新数据(update 表名 set 列名='' where 列名='')
update Table_1 set id=3 where id=1