Az

Schriftart wählen

Schriftgröße wählen

Zeilenabstand wählen

Schnellzugriff Verlauf Funktionen
insert_id() uses SELECT lastval() which returns the last sequence value used in the current database session, regardless of which table it came from. This is currently safe because there aren't any INSERT triggers or rules using sequences on other tables. So this is latent bug, which can be avoided: current pattern: QA("INSERT ...",[...]); $id=mydb_get_insert_id() then: $id=QAV("INSERT ... RETURNING id", [...]); TODO: modules/discuss/discuss.php: $mid = mydb_
Mehr hier

Funktionen für Replace insert_id() / lastval() with INSERT ... RETURNING

Merkzettel