DELETE FROM on_search
WHERE search_date < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 180 DAY))
More Related Contents:
- MySQL Error 1093 – Can’t specify target table for update in FROM clause
- Remove duplicate rows in MySQL
- How to delete from multiple tables in MySQL?
- MySQL DELETE FROM with subquery as condition
- SQL query: Delete all records from the table except latest N?
- Deleting rows with MySQL LEFT JOIN
- SQL DELETE with JOIN another table for WHERE condition
- Mysql delete statement with limit
- How do I delete all the duplicate records in a MySQL table without temp tables
- Delete from one table with join
- MySQL LIMIT on DELETE statement
- Deleting a row based on the max value
- delete rows from multiple tables
- Deleting millions of rows in MySQL
- How do I escape special characters in MySQL?
- Enable remote MySQL connection: ERROR 1045 (28000): Access denied for user
- SQL counting all rows instead of counting individual rows
- Remote Connections Mysql Ubuntu
- MySQL InnoDB not releasing disk space after deleting data rows from table
- In MySQL, should I quote numbers or not?
- Dump all tables in CSV format using ‘mysqldump’
- MySQL add days to a date
- How can I loop through all rows of a table? (MySQL)
- Select columns across different databases
- MySql update two tables at once
- Returning query results in predefined order
- Django MySQL full text search
- How to force MySQL to take 0 as a valid auto-increment value
- MySQL LIKE vs LOCATE
- MYSQL Select One Random record from each Category