标签:unsigned into arch primary char syn key auto incr
实例:
create table test_increment(
id int unsigned not null auto_increment,
name varchar(20) not null,
date date not null,
primary key (id)
);
insert into test_increment values
(1,‘张三‘,‘2001-09-10‘),
(null,‘李四‘,‘2001-09-10‘);
mysql> select * from test_increment;
+----+------+------------+
| id | name | date |
+----+------+------------+
| 1 | 张三 | 2001-09-10 |
| 2 | 李四 | 2001-09-10 |
+----+------+------------+
2 rows in set
(1,‘王五‘,‘2001-09-10‘);
1064 - You have an error in your SQL syntax;...
标签:unsigned into arch primary char syn key auto incr
原文地址:https://www.cnblogs.com/Stephanie-boke/p/11675202.html