显示警告信息的内容
checksum 1 通过已经存在的校验码来检查表中的数据是否有错误。
comment 添加注释信息
MySQL>create table if not exists stu2 (......) comment 'Students'info.' ;
delay_key_write 跟索引相关联,延迟索引更新,可以提高数据库性能。
根据已经存在的表来创建一个新表:
通过选取一些字段来创建一个新表
mysql> create table course2 select * from course where id

创建一个跟原来表结构一摸一样的表:
mysql> create table course3 like course;

向表中添加数据:
mysql> insert into course(course,startdate) values ('Maths','2011-01-01');

批量插入:
mysql> insert into course(course) values ('English'),('Computer'),('Music');

清空表:
mysql> truncate table course;
添加唯一键约束:
mysql> alter table course add unique key(course);

通过select来添加数据:
mysql> insert into course3 select * from course;

使用set为某个字段设值:
mysql> insert into course set course='PE';

修改表中数据:
mysql> update course set id=id+1 where id=5;

