v5:reference:connection:insert_id
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
reference:insert_id [2015/12/12 17:42] – mnewnham | v5:reference:connection:insert_id [2018/06/11 10:16] – [Usage] function names starting with lowercase (#426) dregad | ||
---|---|---|---|
Line 17: | Line 17: | ||
===== Postgresql / SAP MaxDB ===== | ===== Postgresql / SAP MaxDB ===== | ||
- | The only drivers that __require__ the optional '' | + | The only drivers that __require__ the optional '' |
===== Usage ===== | ===== Usage ===== | ||
Line 29: | Line 29: | ||
* Insert into table with auto-increment column, current highest value 100 | * Insert into table with auto-increment column, current highest value 100 | ||
*/ | */ | ||
- | $db->Execute(' | + | $db->execute(' |
$lastId = $db-> | $lastId = $db-> | ||
print $lastId; | print $lastId; | ||
Line 39: | Line 39: | ||
* Insert into a different table with auto-increment, | * Insert into a different table with auto-increment, | ||
*/ | */ | ||
- | $db->Execute(' | + | $db->execute(' |
$lastId = $db-> | $lastId = $db-> | ||
print $lastId; | print $lastId; |
v5/reference/connection/insert_id.txt · Last modified: 2023/06/20 09:40 by dregad