清空数据.sql 1.0 KB

1234567891011121314151617181920212223242526272829
  1. SET foreign_key_checks = 0;
  2. truncate table benteler_plan;
  3. truncate table benteler_plan_bak;
  4. truncate table first_article_approval_task;
  5. truncate table first_article_calendar;
  6. truncate table first_article_item;
  7. truncate table first_article_item_result;
  8. truncate table first_article_task;
  9. truncate table first_article_task_his_blob;
  10. truncate table first_article_task_key;
  11. truncate table first_article_title_blob;
  12. truncate table first_article_workshop;
  13. truncate table onsite_approval_plan;
  14. truncate table onsite_approval_task;
  15. truncate table onsite_calendar;
  16. truncate table onsite_item;
  17. truncate table onsite_item_result;
  18. truncate table onsite_plan_his_blob;
  19. truncate table onsite_task;
  20. truncate table onsite_task_his_blob;
  21. truncate table onsite_title_blob;
  22. truncate table plan_bind;
  23. truncate table onsite_workshop;
  24. truncate table remind_approval_task;
  25. truncate table us_user_wechat;
  26. SET foreign_key_checks = 1;
  27. delete from upload_file_blob where id > 1;
  28. delete from us_user_role where user_id > 1;
  29. delete from us_user where id > 1;