maxdb_sqlstate maxdb::sqlstate Returns the SQLSTATE error from previous MaxDB operation &reftitle.description; &style.procedural; stringmaxdb_sqlstate resourcelink &style.oop; stringmaxdb->sqlstate 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. Note that not all MaxDB errors are yet mapped to SQLSTATE's. The value HY000 (general error) is used for unmapped errors. &reftitle.returnvalues; Returns a string containing the SQLSTATE error code for the last error. The error code consists of five characters. '00000' means no error. &reftitle.examples; &style.oop; query("CREATE TABLE hotel.city (ID INT, Name VARCHAR(30))")) { printf("Error - SQLSTATE %s.\n", $maxdb->sqlstate); } $maxdb->close(); ?> ]]> &style.procedural; ]]> &example.outputs.similar; Error - SQLSTATE I6000. ]]> &reftitle.seealso; maxdb_errno maxdb_error