Unix and Linux Discussions Tagged with previous |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
3,783 |
Shell Programming and Scripting |
|
|
|
5 |
5,208 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,297 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
4 |
7,155 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
33,748 |
HP-UX |
|
|
|
3 |
4,436 |
Shell Programming and Scripting |
|
|
|
1 |
6,671 |
Shell Programming and Scripting |
|
|
|
3 |
14,449 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,756 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,154 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,806 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,197 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,024 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
4,682 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
67,818 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
1,927 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,486 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,957 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,694 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,462 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
51,339 |
UNIX for Dummies Questions & Answers |
FBSQL_INSERT_ID(3) 1 FBSQL_INSERT_ID(3)
fbsql_insert_id - Get the id generated from the previous INSERT operation
SYNOPSIS
int fbsql_insert_id ([resource $link_identifier])
DESCRIPTION
Gets the id generated from the previous INSERT operation which created a DEFAULT UNIQUE value.
Note
The value of the FrontBase SQL function fbsql_insert_id(3) always contains the most recently generated DEFAULT UNIQUE value, and is
not reset between queries.
PARAMETERS
o $
link_identifier -A FrontBase link identifier returned by fbsql_connect(3) or fbsql_pconnect(3).If optional and not specified, the
function will try to find an open link to the FrontBase server and if no such link is found it will try to create one as if
fbsql_connect(3) was called with no arguments.
RETURN VALUES
Returns the ID generated from the previous INSERT query, or 0 if the previous query does not generate an DEFAULT UNIQUE value.
If you need to save the value for later, be sure to call this function immediately after the query that generates the value.
SEE ALSO
fbsql_affected_rows(3).
PHP Documentation Group FBSQL_INSERT_ID(3)