Tach,
DELETE FROM nachrichten
WHERE id
NOT IN
(
SELECTid
FROMnachrichten
ORDER BYdatum
DESC
LIMIT 0 , 100
)
>
> da kriege ich leider diesen Fehler
>
> This version of MySQL doesn't yet support 'LIMIT IN/ALL/ANY/SOME subquery'
kann man Mysql mit
~~~sql
DELETE FROM `nachrichten` WHERE `id` NOT IN (
SELECT * FROM (
SELECT `id`
FROM `nachrichten`
ORDER BY `datum` DESC
LIMIT 0 , 100
) as t
)
überlisten?
mfg
Woodfighter