找回密码
 注册
查看: 2756|回复: 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");
1 @( G' _0 S  ^9 q" P+ U2 |ERROR 1136 (21S01): Column count doesn't match value count at row 1
# f3 m' Q. T8 w3 Z2 e3 K  dmysql> alter table jjj modify id int(11) auto_increment;4 b8 |; X8 m) v& e) G" W: y  T
Query OK, 0 rows affected (0.16 sec)
5 H$ P9 e/ W! D  c5 |4 HRecords: 0  Duplicates: 0  Warnings: 0
/ W# \( O+ {" Z9 D- H' P1 Vmysql> insert into jjj values("yang","23"),("ya","22");# |+ ?' Q, `; _+ x8 Z" G4 `
ERROR 1136 (21S01): Column count doesn't match value count at row 11 V" {. ~: K0 ~( N4 Y. z
mysql> insert into jjj values(,"yang","23"),(,"ya","22");
$ s, u/ h+ [) R3 {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
1 n! n- y  v# b, ]; _( i1 Tmysql> insert into jjj values(" ","yang","23"),(" ","ya","22");! q; g. |) |4 d5 C& p0 t+ K
Query OK, 2 rows affected, 2 warnings (0.11 sec)7 [& l2 T& W. O. ^7 a8 I& i  c
Records: 2  Duplicates: 0  Warnings: 2
9 N7 D/ n/ Q! a; tmysql> select * from jjj;
2 O# C2 O$ l8 s/ D+----+------+------++ ^7 T# R6 T4 Y* Y) `. _1 w% ?
| id | name | age  |
1 K+ l* q  x9 c) N+----+------+------+) S3 g6 S, z- ~
|  1 | yang |   23 |$ ^7 ~9 l/ w3 _) y4 m- h
|  2 | ya   |   22 |
3 ?& p% ]" Q' [& M5 i! B+----+------+------+) y. z7 v3 F& D; t1 d
2 rows in set (0.00 sec)
7 @. A# [2 I" n7 L" j) Imysql>
- y. w5 X/ N% U2 ^7 w
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:14 , Processed in 0.014166 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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