|
maxdb_stmt_sqlstateReturns SQLSTATE error from previous statement operation Beschreibung
string maxdb_stmt_sqlstate
( resource
$stmt
)Returns a string containing the SQLSTATE error code for the most recently invoked prepared statement function that can succeed or fail. The error code consists of five characters. '00000' means no error. The values are specified by ANSI SQL and ODBC.
RückgabewerteReturns a string containing the SQLSTATE error code for the last error. The error code consists of five characters. '00000' means no error. BeispieleBeispiel #1 Objektorientierter Stil
<?phpBeispiel #2 Prozeduraler Stil
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: Warning: maxdb_stmt_execute(): -4004 POS(23) Unknown table name:MYCITY [42000] <...> Error: 42000. Siehe auch
|