|
|
mysql> insert into jjj values("yang","23"),("ya","22");
$ C5 u$ ^2 B: i) P# I9 j8 KERROR 1136 (21S01): Column count doesn't match value count at row 1& q7 m. ^ f7 S! B
mysql> alter table jjj modify id int(11) auto_increment; O/ @+ t3 K" P2 g
Query OK, 0 rows affected (0.16 sec)
9 `2 q4 Z& |) w# ?5 q9 zRecords: 0 Duplicates: 0 Warnings: 0. `. X/ R0 T) {2 e& `" Z/ |
mysql> insert into jjj values("yang","23"),("ya","22");7 I. I \0 K, P: l3 L
ERROR 1136 (21S01): Column count doesn't match value count at row 1/ Q- S/ q/ q! l ~: r
mysql> insert into jjj values(,"yang","23"),(,"ya","22");" L# q) _) e7 n& h! H) ~0 \
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 V3 { A: O5 X' |: Y
mysql> insert into jjj values(" ","yang","23"),(" ","ya","22");
6 m8 B! P3 S0 K* z) j7 |1 ?8 v. zQuery OK, 2 rows affected, 2 warnings (0.11 sec)- z& N$ J0 ] ~4 B7 n
Records: 2 Duplicates: 0 Warnings: 26 W2 A: f! X# t- t: h4 `, q
mysql> select * from jjj;& c) X: J j6 h' }4 k" o
+----+------+------+; Z7 [2 k) M- a0 u. \# n" Y/ E( l' C' t) @
| id | name | age |
( n* g* K4 B, S+ Z5 p+----+------+------+
- u, q, h9 m$ B6 Z; ]| 1 | yang | 23 |
$ k: R. {( g2 F9 u# q| 2 | ya | 22 |
! R: e. |! S$ `6 P8 C+----+------+------+7 ?* O2 T3 F# B: ~
2 rows in set (0.00 sec)
+ a6 V4 g% `/ k3 P& z# Q; kmysql>
L& V$ U: \. L" |! s |
|