Files

17 lines
724 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-07-21 工作记录
## SQL 脚本生成规范(今日确立)
**场景:** 为实施人员生成可执行的 SQL 脚本,通过 xuan-sql 项目仓库分发。
**规范:**
1. 脚本放在 `xuan-sql/scripts/` 目录
2. 提交推送到 Gitee,其他主机 pull 同步给实施人员
3. **表名必须带数据库前缀**(如 `dmp_smdm.dmp_md_item_info`),因为生产实例有多个库
4. **不暴露 VPS IP**,脚本中只写库名和表名
5. 敏感信息用占位符(如 `${ECID}`),使用者自行替换
6. 先 SELECT 确认数据量,再 DELETEDELETE 默认注释掉
**已生成脚本:**
- `scripts/delete_item_info_by_ecid.sql` — 根据 ecid 删除 dmp_smdm.dmp_md_item_info 表数据