输出自动增长的编号是:$pdo->lastInsertId(); 当数据没有变化的时候 他是0 -> if($result===0) 数据就是没有变化 错误编号 $pdo->errorCode(); 错误 $pdo->errorInfo();