maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #04988
Re: Fwd: mysql_insert_id() for INSERT...SELECT statement
Hi, Yuki!
On Jan 30, Yuki . wrote:
> Hi Sergei,
>
> Thank you very much for the help.
>
> You suggest to check `mysql_affected_rows` first and if it is `1`, get
> id from `mysql_insert_id`, is it right? Because my goal is to get an
> ID in case of a successful insertion.
Yes
Regards,
Sergei
Chief Architect MariaDB
and security@xxxxxxxxxxx
References