sqlite_export.sql 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. -- SQLite数据导出到MySQL
  2. -- 导出时间: 2025-11-16 14:22:18
  3. -- 禁用外键检查(如果需要)
  4. SET FOREIGN_KEY_CHECKS = 0;
  5. -- 清空表数据(可选,谨慎使用)
  6. -- TRUNCATE TABLE companies;
  7. -- TRUNCATE TABLE cargos;
  8. -- TRUNCATE TABLE purchase_plans;
  9. -- TRUNCATE TABLE weighing_slips;
  10. -- 公司表数据
  11. INSERT INTO companies (name, created_at) VALUES ('安庆山峡化工', '2025-11-16 08:38:39');
  12. INSERT INTO companies (name, created_at) VALUES ('安庆市山峡化工有限公司', '2025-11-16 09:50:43');
  13. INSERT INTO companies (name, created_at) VALUES ('安庆伍六七', '2025-11-16 09:57:14');
  14. INSERT INTO companies (name, created_at) VALUES ('安庆一二三', '2025-11-16 09:57:19');
  15. INSERT INTO companies (name, created_at) VALUES ('测试公司', '2025-11-16 10:08:42');
  16. -- 共 5 条公司记录
  17. -- 货物表数据
  18. INSERT INTO cargos (name, created_at) VALUES ('精致硫酸', '2025-11-16 08:38:45');
  19. INSERT INTO cargos (name, created_at) VALUES ('工业硫酸 98%', '2025-11-16 09:54:58');
  20. INSERT INTO cargos (name, created_at) VALUES ('工业硫酸 30%', '2025-11-16 09:55:45');
  21. INSERT INTO cargos (name, created_at) VALUES ('工业硫酸 50%', '2025-11-16 09:55:51');
  22. INSERT INTO cargos (name, created_at) VALUES ('氢氧化钠 32%', '2025-11-16 09:58:44');
  23. INSERT INTO cargos (name, created_at) VALUES ('硫酸', '2025-11-16 10:00:07');
  24. INSERT INTO cargos (name, created_at) VALUES ('盐酸', '2025-11-16 10:02:13');
  25. INSERT INTO cargos (name, created_at) VALUES ('测试产品', '2025-11-16 10:08:42');
  26. -- 共 8 条货物记录
  27. -- 采购计划表数据