I came across mariadb, where I can do:
INSERT INTO user (user_id, user_name) VALUES (1, 'hi') RETURNING *;
To return the whole row after inserting.
However, if I do the same thing in mysql, it would give me a syntax error.
Is there an equivalent in mysql that can return the whole row after inserting in a single statement?