› MySQL 5.5 Community Server
› MySQL 5.6 Community Server
› Percona Configuration Wizard
› XtraBackup 搭建主从复制
Great Sites on MySQL
› Percona
› MySQL Performance Blog
› Severalnines
推荐管理工具
› Sequel Pro
› phpMyAdmin
推荐书目
› MySQL Cookbook
MySQL 相关项目
› MariaDB
› Drizzle
参考文档
› http://mysql-python.sourceforge.net/MySQLdb.html
ka
V2EX  ›  MySQL

非递增字段,批量插入时怎么在 mysql 的表中普通的 int 字段插入递增的数据?

  •  
  •   ka · Jun 9, 2015 · 3620 views
    This topic created in 4128 days ago, the information mentioned may be changed or developed.
    例如下面这句
    INSERT INTO tableA (aaid,bbid) (SELECT 45, ID FROM tableB WHERE id < 10)

    我怎么可以实现第一行插入是aaid是45,第二行插入是46
    yfl168648
        1
    yfl168648  
       Jun 9, 2015
    触发器
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5014 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 09:04 · PVG 17:04 · LAX 02:04 · JFK 05:04
    ♥ Do have faith in what you're doing.