我有下表:CREATETABLEdummy(thousandINT(10)UNSIGNED,UNIQUE(thousand));我可以使用sql语法插入每千个正整数,从1开始直到100万?我可以在php中实现这一点,但我想知道如果不使用存储过程这是否可行。thousand11001200130014001...998001999001 最佳答案 insertintodummy(thousand)selectPreQuery.thousandfrom(select@sqlvarthousand,@sqlvar:=@sqlvar+100