首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >关于“contain not supported”的错误

关于“contain not supported”的错误
EN

Stack Overflow用户
提问于 2021-08-18 09:58:42
回答 1查看 9关注 0票数 0

我运行下面的脚本:

代码语言:javascript
复制
store_code = ["AH0001","AH0003","AH0004","AH0005"]
typestr(store_code)
temp_store_tbl = table(store_code)

select * from shared_skx_tt6 where store_code in (exec * from temp_store_tbl)
select * from shared_skx_tt6 where store_code in (store_code)

出现错误:

代码语言:javascript
复制
Contain method not supported.
EN

回答 1

Stack Overflow用户

发布于 2021-10-29 03:09:41

在DolphinDB中,变量名和字段名不能相同,因此需要重命名变量store_code。

应修改脚本:

代码语言:javascript
复制
store_code1 = ["AH0001","AH0003","AH0004","AH0005"]
typestr(store_code)
temp_store_tbl = table(store_code)

select * from shared_skx_tt6 where store_code in (exec * from temp_store_tbl)
select * from shared_skx_tt6 where store_code in (store_code1)
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68830260

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档