dijital_self
2007-09-10 22:04:48 UTC
i know how to retrieve the last 10 entry by using
exp:
"SELECT * FROM table1 WHERE column = 12 ORDER BY id DESC LIMIT 0,5"
but what is the query to delete the last 5 or 10 entry?
right know i'm using foreach by passing the last 5-10 entry to an array. but what if i want to delete the last 100 entry? if i use an array i'm sure there'll be a performance problem
thx before