PHP » GoLang |
login |
register |
about
|
GoLang cubrid_insert_id
request it (305)
GoLang replacement for PHP's cubrid_insert_id
[edit | history]
cubrid_insert_id(PECL CUBRID >= 8.3.0) cubrid_insert_id — Return the ID generated for the last updated Description
string cubrid_insert_id
([ resource
$conn_identifier
] )The cubrid_insert_id() function retrieves the ID generated for the AUTO_INCREMENT column which is updated by the previous INSERT query. It returns 0 if the previous query does not generate new rows, or FALSE on failure.
Parameters
Return ValuesA string representing the ID generated for an AUTO_INCREMENT column by the previous query, on success. 0, if the previous query does not generate new rows.
Changelog
ExamplesExample #1 cubrid_insert_id() example
<?php The above example will output: string(2) "19" |
more
Recently updated
more
Most requested
more
Last requests
|