Hello. There is a certain database in which you need to create a new line.
Now I do it using two queries, the first one creates, and the second one extracts:
INSERT INTO positions (title) VALUES ('title') SELECT id FROM positions WHERE title='title' But this, of course, is wrong, since in the case of two identical title will produce two id .
How to make one request which would create a line, and then return its id ?