1、登录mysql TT库,执行以下脚本,主要请勿在生产系统执行
delete from u_user where name not in ('dev','admin','dails','wuxw');
delete from f_floor ;
delete from building_unit ;
delete from building_room ;
delete from building_room_attr ;
delete from building_owner_room_rel ;
delete from n_notice ;
delete from r_repair_pool ;
delete from r_repair_user ;
delete from complaint ;
delete from s_visit_info ;
-- 以下三条语句 hc_community 和TT库都需要执行
delete from s_community where community_id <> '7020181217000001';
delete from s_community_attr where community_id <> '7020181217000001';
delete from s_community_member where community_id <> '7020181217000001';
delete from building_owner ;
delete from building_owner_room_rel;
delete from parking_area;
delete from parking_space;
delete from pay_fee;
delete from pay_fee_attrs ;
delete from

本文提供了一组用于清理特定MySQL数据库的SQL脚本示例,包括删除多个表中的记录,适用于非生产环境的数据清理操作。请注意,在执行前务必做好数据备份。
最低0.47元/天 解锁文章
473

被折叠的 条评论
为什么被折叠?



