ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:insert_id

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
v5:reference:connection:insert_id [2023/06/20 09:39] – [Description] return value is falsey (see #989) dregadv5:reference:connection:insert_id [2023/06/20 09:40] (current) – [Description] dregad
Line 9: Line 9:
 </WRAP> </WRAP>
 ===== Description ====== ===== Description ======
-The function ''insert_Id()'' returns the last auto-increment number of __any__ table, generated by an insert on a table with an auto-increment column. If no such insertion has occurred or the database does not support the operation, the function returns false or a value that evaluates to false.+The function ''insert_Id()'' returns the last auto-increment number of __any__ table, generated by an insert on a table with an auto-increment column. If no such insertion has occurred or the database does not support the operation, the function returns //false// (or a value that evaluates to false).
  
 The value retrieved is **connection-based**, meaning that each concurrent connection (even if multiple connections are associated with the same procedure) has its own instance of the number. The value retrieved is **connection-based**, meaning that each concurrent connection (even if multiple connections are associated with the same procedure) has its own instance of the number.
v5/reference/connection/insert_id.txt · Last modified: 2023/06/20 09:40 by dregad