PHP PDO lastinsertId 有什么要求?
資深大佬 : youla 8
目前是(MySQL)bigint 的随机 id,insert 成功返回 0,之前用 int 自增 id 正常。
大佬有話說 (8)
目前是(MySQL)bigint 的随机 id,insert 成功返回 0,之前用 int 自增 id 正常。
https://github.com/php/php-src/blob/master/ext/pdo_mysql/mysql_driver.c#L289