SQLAlchemy笔记

给已经存在的表添加索引:

tmp_index = Index("idx_code_date", tmp_bs_ln_pctchg.c.code, tmp_bs_ln_pctchg.c.date)
tmp_index.create(bind=engine)
posted @ 2020-12-17 02:45  大步  阅读(71)  评论(0编辑  收藏  举报