Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

limite de subconsulta mySQL


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