clear_biz_data.sql 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. SELECT
  2. TABLE_NAME,
  3. TABLE_COMMENT,
  4. TABLE_TYPE,
  5. ENGINE,
  6. VERSION,
  7. ROW_FORMAT,
  8. TABLE_ROWS,
  9. AVG_ROW_LENGTH,
  10. DATA_LENGTH,
  11. CREATE_TIME,
  12. UPDATE_TIME
  13. FROM information_schema.TABLES
  14. WHERE TABLE_SCHEMA = 'lq_db_dev'
  15. ORDER BY TABLE_NAME;
  16. TRUNCATE TABLE t_image_category; -- 图片分类表
  17. TRUNCATE TABLE t_image_info; -- 图片信息表
  18. TRUNCATE TABLE t_oauth_access_tokens; -- 访问令牌表
  19. TRUNCATE TABLE t_oauth_authorization_codes; -- 授权码表
  20. TRUNCATE TABLE t_oauth_token_blacklist; -- 令牌黑名单表
  21. TRUNCATE TABLE t_samp_construction_plan_base_info; -- 施工方案知识库
  22. TRUNCATE TABLE t_samp_standard_base_info; -- 施工标准规范
  23. TRUNCATE TABLE t_samp_office_regulations; -- 办公制度知识库
  24. TRUNCATE TABLE t_samp_custom_schema; -- 知识库自定义Schema表
  25. TRUNCATE TABLE t_samp_doc_category; -- 文档分类表
  26. TRUNCATE TABLE t_samp_document_main; -- 文档主表
  27. TRUNCATE TABLE t_samp_knowledge_base; -- 知识库表
  28. TRUNCATE TABLE t_samp_metadata; -- 元数据字段表
  29. TRUNCATE TABLE t_samp_search_engine; -- 搜索引擎表
  30. TRUNCATE TABLE t_samp_tag_category; -- 标签分类表
  31. TRUNCATE TABLE t_sys_login_log; -- 登录日志表
  32. TRUNCATE TABLE t_sys_operation_log; -- 操作日志表
  33. TRUNCATE TABLE t_sys_sync_log; -- 同步日志表
  34. TRUNCATE TABLE t_task_management; -- 任务管理表