Truncate with condition

前端 未结 4 1639
野的像风
野的像风 2020-12-08 09:49

truncate ->this resets the entire table, is there a way via truncate to reset particular records/check conditions.

For ex: i want to reset all the data and keep las

4条回答
  •  难免孤独
    2020-12-08 10:16

    You can simply export the table with a query clause using datapump and import it back with table_exists_action=replace clause. Its will drop and recreate your table and take very less time. Please read about it before implementing.

提交回复
热议问题