Need to do 2 requests:
- Delete a certain number of table entries.
- Extract records from one table and insert them into another.
In the case of the usual sampling of the necessary values in the documentation, it is recommended to use LIMIT
and it looks like this:
SELECT * FROM tab.name LIMIT 10 (например 10);
It works, but in the case of deletion it does not work, the insertion also:
SELECT * FROM tab.name LIMIT 10; INSERT INTO tab.name1 (SELECT FROM tab.name2 LIMIT 10);
How to write a request to implement these conditions?