PHP » GoLang |
login |
register |
about
|
maxdb_sqlstatemaxdb::sqlstate(PECL maxdb >= 1.0) maxdb_sqlstate -- maxdb::sqlstate — Returns the SQLSTATE error from previous MaxDB operation DescriptionProcedural style
string maxdb_sqlstate
( resource
$link
)Object oriented style string $maxdb->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.
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 Object oriented style
<?php Example #2 Procedural style
<?php The above example will output something similar to: Warning: maxdb_query(): -6000 POS(20) Duplicate table name:CITY [I6000] <...> Error - SQLSTATE I6000. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|