Mysql
 sql >> Base de données >  >> RDS >> Mysql

limite de sous-requête mySQL

Essayez ceci :

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