This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
执行顺序:需按以下顺序执行建表语句,避免外键依赖报错:
t_industry_index → t_stock_basic → t_stock_daily_trade(及子表)→ t_stock_high_low_status
分表扩展:
MySQL:新增月份分区时,执行 ALTER TABLE t_stock_daily_trade ADD PARTITION (...),示例:
ALTER TABLE t_stock_daily_trade ADD PARTITION (
PARTITION `p202504` VALUES LESS THAN (TO_DAYS('2025-05-01')) COMMENT '2025年4月数据'
);
-----------