您的位置
主页 > 网站技术 > 数据库 > » 正文

一千行的MySQL学习笔记汇总(10)

来源: 锦尚中国 点击:

5. auto_increment 自动增长约束
    自动增长必须为索引(主键或unique)
    只能存在一个字段为自动增长。
    默认为1开始自动增长。可以通过表属性 auto_increment = x进行设置,或 alter table tbl auto_increment = x;

6. comment 注释
    例:create table tab ( id int ) comment '注释内容';




首页  - 关于站长圈  - 广告服务  - 联系我们  - 关于站长圈  - 网站地图  - 版权声明