I need to return all inserted identifiers (from a field with automatic addition) from a single query that inserts something like 20 + rows into a MySQL database. I have something like this so far:
INSERT INTO [tablename] ( ... ) VALUES ( ... ), ( ... ), ( ... );
How do I modify this query to return all inserted identifiers?
I found several topics where DECLARE was suggested, but PhpMyAdmin always returned an error when I tried to run the query.
Thanks!
source share