Dennis Cote wrote:
Eric S. Johansson wrote:
what is the easiest way to hold on to the last N records and delete
all older? I can't figure out the right where expression.
--- eric
Eric,
I posted some sample code to use a table as FIFO (last N records) to the
list a while ago. See
http://a
Eric S. Johansson wrote:
what is the easiest way to hold on to the last N records and delete
all older? I can't figure out the right where expression.
--- eric
Eric,
I posted some sample code to use a table as FIFO (last N records) to the
list a while ago. See
http://article.gmane.org/gma
try this:
delete from mytable
where id not in ( select id from mytable order by id desc limit n )
On 4/7/07, Eric S. Johansson <[EMAIL PROTECTED]> wrote:
what is the easiest way to hold on to the last N records and delete all
older? I can't figure out the right where expression.
--
--
what is the easiest way to hold on to the last N records and delete all
older? I can't figure out the right where expression.
--- eric
--
Speech-recognition in use. It makes mistakes, I correct some.
-
To unsubscribe
4 matches
Mail list logo