回忆之城
生命在于折腾
posts - 575,comments - 9,trackbacks - 0
<2013年8月>
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567

常用链接

留言簿(5)

随笔分类(628)

随笔档案(575)

文章分类(5)

收藏夹

interesting

testing blog

搜索

  •  

最新评论

阅读排行榜

评论排行榜

指定id
错误:INSERT INTO test VALUES('test');
这样的形式会产生错误,信息大致说数据列不够。
Column count doesn't match value count at row 1
如果,自己填写id也可以,如下:
INSERT INTO test (id, name) VALUES(1,'test');

正确写法,如下:
自动增长Id的插入语句
INSERT INTO test (name) VALUSE('test');

posted on 2015-05-06 17:55 回忆之城 阅读(156) 评论(0)  编辑 收藏 引用 所属分类: unix/linux数据库
只有注册用户登录后才能发表评论。