1.添加数据
添加数据: insert into 表名 values(数据1,数据2);
添加指定数据:nsert into 表名(字段名1,字段名2) values(数据1,数据2);
添加多条数据: insert into 表名 values(数据1,数据2),(数据1,数据2)...;
2.删除数据
条件删除:delete from 表名 where 条件 ;
delete from 表名 where 条件1 and 条件2;
delete from 表名 where 条件1 or 条件2;
3.修改数据
修改数据:update 表名 set 字段名 = 数据;
根据条件更改: update 表名 set 字段名 =数据 where 字段名 = 数据;
根据条件更改多条数据: update 表名 set 字段名 =数据1,字段名 =数据2 where 字段名 = 数据;
4.查询数据
查询所有数据: select * from 表明;
where查询 :select * from 表名 where 条件