
上QQ阅读APP看书,第一时间看更新
How to do it...
- Identify the table from which data needs to be deleted.
- Delete full tables or only required rows:
DELETE FROM test01.web_clicks ALL; -- All rows deleted
DELETE FROM test01.web_clicks where site=01 and partition_date=date-1 -- Rows with Site=0 only deletes and use partition column to avoid full table scan.