PDO::errorCode

Fetch the SQLSTATE associated with the last operation on the database handle