增
- insert into students (姓名,性别,出生日期) values (‘王伟华’,‘男’,‘1983/6/15’);
- insert into addressList (‘姓名’,‘地址’,‘电子邮件’) select name,address,email from students;
增
- delete from <表名> [where <删除条件>]
- delete from students where name=‘王伟华’;
- 语法:truncate table <表名>
- 例:truncate table addressList;
改
- 语法:update <表名> set <列名=更新值> [where <更新条件>]
- 例:update addressList set 年龄=18 where 姓名=‘王伟华’;
查
- 语法:select <列名> from <表名> [where <查询条件表达试>] [order by <排序的列名>[asc或desc]]