V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
older
V2EX  ›  问与答

mysql 一个表只有一个字段,且此字段是 AUTO_INCREMENT, 如何插入数据?

  •  
  •   older · 2013-08-05 00:07:39 +08:00 · 2289 次点击
    这是一个创建于 3939 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1 条回复    1970-01-01 08:00:00 +08:00
    SonicXP
        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   ·   实用小工具   ·   2134 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:26 · PVG 18:26 · LAX 03:26 · JFK 06:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.