- 积分
- 16841
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
mysql> insert into jjj values("yang","23"),("ya","22");' e; E! ]% N4 J2 C* q# P
ERROR 1136 (21S01): Column count doesn't match value count at row 1$ G# r5 q$ ?- o7 ~) \
mysql> alter table jjj modify id int(11) auto_increment;" H8 J5 h- V, V
Query OK, 0 rows affected (0.16 sec)2 _3 r G9 W$ L7 T7 |3 c8 d \
Records: 0 Duplicates: 0 Warnings: 0
( p. y, r- T; b* s0 rmysql> insert into jjj values("yang","23"),("ya","22");
8 B& D5 d3 ^. R2 A, ]8 Q. AERROR 1136 (21S01): Column count doesn't match value count at row 1: {! A. {" [! b% n9 v3 }
mysql> insert into jjj values(,"yang","23"),(,"ya","22");& A8 a% |9 I8 c2 G+ h k" t
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* y u9 y8 ?6 _) d8 S. A% ~, o/ Y
mysql> insert into jjj values(" ","yang","23"),(" ","ya","22");
! W3 A! m" ^( K! F1 _; PQuery OK, 2 rows affected, 2 warnings (0.11 sec)
3 R# B' _" W3 a* t2 S P6 ORecords: 2 Duplicates: 0 Warnings: 2
# l; `3 {5 {6 ]+ _1 ^! Xmysql> select * from jjj;3 Q- J, k# {1 ^* w9 @
+----+------+------+
* c$ f1 C' E) k) l, y% P$ W| id | name | age |1 l, l5 R/ E/ g* Z. C
+----+------+------+0 e% l5 ~1 E5 V, M4 f( [( c% n
| 1 | yang | 23 |- E$ T( @' T r0 D
| 2 | ya | 22 |3 j3 t. s+ o# s A, b0 ?8 m
+----+------+------+
3 o* @. c% f0 v/ k7 k( l$ ~6 F2 rows in set (0.00 sec)
# ^0 k9 _! z: W( imysql> ' K7 F4 `% d1 v+ E) _
|
|