MySQL 用随机数据填充外键表参考: http://blog.itpub.net/29254281/viewspace-1686302/ 准备环境 1.创建数字辅助表 create table nums(id int not null primary key); delimiter $$ create procedur