Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

股票指标数据 接口 Table 'instockdb.cn_stock_attention' doesn't exist #350

Open
AZiMiao1122 opened this issue Dec 24, 2024 · 5 comments

Comments

@AZiMiao1122
Copy link

当前日期使用最新的docker镜像,点击页面上的股票指标数据,接口报错:
Table 'instockdb.cn_stock_attention' doesn't exist
表不存在是什么问题,我应该怎么弄?

@AZiMiao1122
Copy link
Author

2024-12-24 17:30:02,410 ######## 任务执行时间: 2024-12-24 17:30:02.410160 #######
2024-12-24 17:30:08,079 stockfetch.fetch_stocks_selection处理异常:'NoneType' object is not subscriptable
2024-12-24 17:38:35,248 ######## 完成任务, 使用时间: 512.8386509418488 秒 #######

捕抓到job的异常,不知道有没有关系

@awfssv
Copy link

awfssv commented Dec 29, 2024

同样问题:Table 'instockdb.cn_stock_attention' doesn't exist

1 similar comment
@woodytang
Copy link

同样问题:Table 'instockdb.cn_stock_attention' doesn't exist

@Shijiuwei
Copy link

终于发现了是系统初始化的时候少建了一张表:
CREATE TABLE IF NOT EXISTS cn_stock_attention (
datetime datetime(0) NULL DEFAULT NULL,
code varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (code) USING BTREE,
INDEX INIX_DATETIME(datetime) USING BTREE
) CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
大家手动建一下,再去同步一下数据,我再看看功能是不是正常

@awfssv
Copy link

awfssv commented Dec 30, 2024

终于发现了是系统初始化的时候少建了一张表: CREATE TABLE IF NOT EXISTS cn_stock_attention ( datetime datetime(0) NULL DEFAULT NULL, code varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (code) USING BTREE, INDEX INIX_DATETIME(datetime) USING BTREE ) CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; 大家手动建一下,再去同步一下数据,我再看看功能是不是正常

执行创建表语句后可以了,谢谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants