PHP » GoLang |
login |
register |
about
|
GoLang mysqli::$sqlstate
request it (444)
GoLang replacement for PHP's mysqli::$sqlstate
[edit | history]
mysqli::$sqlstatemysqli_sqlstate(PHP 5, PHP 7) mysqli::$sqlstate -- mysqli_sqlstate — Returns the SQLSTATE error from previous MySQL operation DescriptionObject oriented style string $mysqli->sqlstate;
Procedural style 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.
Parameters
Return ValuesReturns a string containing the SQLSTATE error code for the last error. The error code consists of five characters. '00000' means no error. ExamplesExample #1 $mysqli->sqlstate example Object oriented style
<?php Procedural style
<?php The above examples will output: Error - SQLSTATE 42S01. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|