MySQL数据库基本命令九
1、主键:create ta水瑞侮瑜ble 表名 (id int not null auto_increment primary key)(主键自增长)创建表时,把主键也创建了。

3、索引的优点:可加快访问的速度,加强唯一性。

5、创建索引的基本原则:某列搜索频繁或者是需要排序时可建立索引。

1、主键:create ta水瑞侮瑜ble 表名 (id int not null auto_increment primary key)(主键自增长)创建表时,把主键也创建了。
3、索引的优点:可加快访问的速度,加强唯一性。
5、创建索引的基本原则:某列搜索频繁或者是需要排序时可建立索引。