|
PDOStatement::errorCodeFetch the SQLSTATE associated with the last operation on the statement handle Beschreibung
public string PDOStatement::errorCode
( void
)
RückgabewerteIdentical to PDO::errorCode, except that PDOStatement::errorCode only retrieves error codes for operations performed with PDOStatement objects. Beispiele
Beispiel #1 Retrieving an SQLSTATE code
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: PDOStatement::errorCode(): 42S02 Siehe auch
|