<?php
$pdo = new PDO('mysql:host=localhost;dbname=你的数据库名','root','root');$a = "0000";
for ($k=0; $k <= 9; $k++) {
$arr = array();
for ($i=$k.$a+1; $i <= ($k+1).$a; $i++) {
array_push($arr, "(".$i.")");
}
$sql1 = "insert into user (num) values ".implode(',', $arr);
$res = $pdo->exec($sql1);
}