DML 语句
1.INSERT
insert into tablename(column1,column2) values(值1,值2);
insert into tablename values(值1,值2); 不指明列名时,需要写所有列值,并且顺序与表一致。
insert into tablename(column1,column2) select avg(col1),avg(col2) from tablename2;插入子查询结果。
2.DELETE
delete from tablename where 条件;
3.UPDATE
update tablename set col1=值1,col2=值2 where 条件;
update tablename set col1=col1+1;