首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX 提问指南
广告
V2EX
›
问与答
mysql 一个表只有一个字段,且此字段是 AUTO_INCREMENT, 如何插入数据?
older
·
2013-08-05 00:07:39 +08:00
· 2347 次点击
这是一个创建于 4094 天前的主题,其中的信息可能已经有所发展或是发生改变。
MySQL
increment
auto
1 条回复
•
1970-01-01 08:00:00 +08:00
1
SonicXP
2013-08-05 00:42:58 +08:00
1
mysql> create table test(a int(10) not null auto_increment, primary key (`a`));
Query OK, 0 rows affected (0.01 sec)
mysql> insert into test values();
Query OK, 1 row affected (0.00 sec)
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
2373 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms ·
UTC 05:47
·
PVG 13:47
·
LAX 22:47
·
JFK 01:47
Developed with
CodeLauncher
♥ Do have faith in what you're doing.