Prøv dette:
DELETE
FROM posts
WHERE id not in (
SELECT * FROM (
SELECT id
FROM posts
ORDER BY timestamp desc limit 0, 15
)
as t);
Prøv dette:
DELETE
FROM posts
WHERE id not in (
SELECT * FROM (
SELECT id
FROM posts
ORDER BY timestamp desc limit 0, 15
)
as t);
Implementer sidesøgning (spring over / tag) funktionalitet med denne forespørgsel
Sådan håndteres Ruby on Rails-fejl:Installer venligst postgresql-adapteren:`gem install activerecord-postgresql-adapter'
Tjek om databasen findes i PostgreSQL ved hjælp af shell
5 hurtige nyttige tips til SQL Server Production DBA'er