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