【问题标题】:The error about “contain method not supported”关于“不支持包含方法”的错误
【发布时间】:2021-10-20 02:58:54
【问题描述】:

我运行下面的脚本:

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)

出现错误:

Contain method not supported.

【问题讨论】:

    标签: dolphindb


    【解决方案1】:

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

    脚本应该修改:

    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)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多