我在空表里執(zhí)行下面這條sql返回的lastInsetId怎么會是1呢??$sql = <<<EOF
INSERT user (username,password,email) VALUES("Captain1","1999","captain@qq.com"),
("Captain2","1999","captain@qq.com"),
("Captain3","1999","captain@qq.com")
EOF;
我在空表里執(zhí)行下面這條sql返回的lastInsetId怎么會是1呢??$sql = <<<EOF
INSERT user (username,password,email) VALUES("Captain1","1999","captain@qq.com"),
("Captain2","1999","captain@qq.com"),
("Captain3","1999","captain@qq.com")
EOF;
2014-10-21
舉報(bào)
2014-10-21
得到的就是AUTO_INCREMENT的值,所以是1
^-^...