|
mysqli::$sqlstatemysqli_sqlstateReturns the SQLSTATE error from previous MySQL operation BeschreibungObjektorientierter Stil string$mysqli->sqlstate;
Prozeduraler Stil
string mysqli_sqlstate
( mysqli
$link
)Returns a string containing the SQLSTATE error code for the last error. The error code consists of five characters. '00000' means no error. The values are specified by ANSI SQL and ODBC. For a list of possible values, see » http://dev.mysql.com/doc/mysql/en/error-handling.html.
Parameter-Liste
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 $mysqli->sqlstate example Objektorientierter Stil
<?phpProzeduraler Stil
<?phpDie obigen Bespiele erzeugen folgende Ausgabe: Error - SQLSTATE 42S01. Siehe auch
|