HOw do I delete record in a table by keeping certain datas??
Posted
by mathew
on Stack Overflow
See other posts from Stack Overflow
or by mathew
Published on 2010-06-11T12:06:17Z
Indexed on
2010/06/11
12:22 UTC
Read the original article
Hit count: 164
my site has lots of incoming searches which is stored in a database to show recent queries into my website. due to high search queries my database is getting bigger in size. so what I want is I need to keep only recent queries in database say 10 records. this keeps my database small and queries will be faster.
I am able to store incoming queries to database but don't know how to restrict or delete excess/old data from table.
any help??
well I am using PHP and MySQL
© Stack Overflow or respective owner