Mysql
 sql >> Database >  >> RDS >> Mysql

limite di sottoquery MySQL

Prova questo:

DELETE 
FROM posts 
WHERE id not in (
      SELECT * FROM (
            SELECT id 
            FROM posts 
            ORDER BY timestamp desc limit 0, 15
      ) 
      as t);