Anyone knows if the PDO::lastInsertId() works with update queries?
Thanks,
Márcio
Anyone knows if the PDO::lastInsertId() works with update queries?
Thanks,
Márcio
AFAIK, Nope!
Returns the ID of the last inserted row, or the last value from a sequence object, depending on the underlying driver. For example, PDO_PGSQL() requires you to specify the name of a sequence object for the name parameter.
The function name itself says that it will return last INSERT id.
BTW, why do you need the ID to be returned from there since you will have to already use the ID to update a row in the query right?
Correct. All clear. Thanks again.
Márcio
slaps Márcio
lol
I do deserve it.
Let’s forget about it ok?
lol