insert into 表名(列名列表)
values(值列表); insert into 表名(列名列表) values(值列表1),(值列表2),... -- 插入多行记录 update 表名 set
列名=值; update 表名 set 列名=值
where delete from 表名 where
id=1; truncate table
表名; select 列名列表 from
表名; 例:select studentid,examid,comments from studentexam; select professor.name from
professor; select 列a as a,列b as b,列c as c from 表名as t;-- 用别名代替列名和表名 select distinct 列a from
表; select distinct 列a ,列b select * from 表名 limit
5; select * from 表名 limit
2,2;
|
|