找回密码
 注册
查看: 2758|回复: 0

ERROR 1136 (21S01): Column count doesn't match value count at row 1 数据库插入数据自动增长

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2020-6-18 09:50:19 | 显示全部楼层 |阅读模式
mysql> insert into jjj values("yang","23"),("ya","22");
; B4 o& x: Z) l4 g9 Z3 a# t; }# ]ERROR 1136 (21S01): Column count doesn't match value count at row 1
$ `; f( J2 ?6 L6 o( L& kmysql> alter table jjj modify id int(11) auto_increment;
7 c/ N2 w$ s4 ]+ g# K, HQuery OK, 0 rows affected (0.16 sec)% ^1 x% J' I6 j3 f4 ?" T' s8 v
Records: 0  Duplicates: 0  Warnings: 0
+ X7 v6 _* q# fmysql> insert into jjj values("yang","23"),("ya","22");
4 a% T) g0 a- [. M; d* mERROR 1136 (21S01): Column count doesn't match value count at row 1
* R& s! M4 A1 A, h4 e& Xmysql> insert into jjj values(,"yang","23"),(,"ya","22");- a: R. a8 X2 B- f0 `& d7 h! b/ E
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"yang","23"),(,"ya","22")' at line 1# G# C6 s% Q' i3 b' y
mysql> insert into jjj values(" ","yang","23"),(" ","ya","22");3 ~# ]8 S5 h7 f+ {
Query OK, 2 rows affected, 2 warnings (0.11 sec)) W* ^  Q9 S4 o% u& S$ r! R8 g0 L
Records: 2  Duplicates: 0  Warnings: 24 G# j$ k6 W6 ^
mysql> select * from jjj;
) Z! M+ ]$ c) b7 Y6 O9 K) t7 O+----+------+------+( ~( {8 Z/ l7 u
| id | name | age  |  f7 k7 C0 A/ e
+----+------+------+, [& t' R4 y: V8 N3 u' ?  H) F
|  1 | yang |   23 |; Y. U  i9 c" [0 c
|  2 | ya   |   22 |" R% W3 R" s5 N
+----+------+------+) [) l" k2 L3 E5 I4 c% B8 ?8 j8 ~
2 rows in set (0.00 sec)) f+ f; c2 r5 I0 g- {0 E" x% u
mysql> ( y6 c- A; S# Z. k/ g( L$ p
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 02:21 , Processed in 0.019544 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表