摘要: MySQL基本SQL语句(下) 一、扩展常见的数据类型 1、回顾数据表的创建语法 基本语法: mysql> create table 数据表名称( 字段名称1 字段类型 字段约束, 字段名称2 字段类型 字段约束, ... primary key(主键字段 => 不能为空、必须唯一) ) engin 阅读全文
posted @ 2022-04-21 21:52 忆笙歌 阅读(62) 评论(0) 推荐(0)
摘要: ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key 删除主键约束时报错, alter table 表名 drop prima 阅读全文
posted @ 2022-04-21 20:06 忆笙歌 阅读(245) 评论(0) 推荐(0)