-2
select preference.id from preference where
--array(select id from date_etl where local_date >= '02/01/2011' and local_date <= '02/25/2011') && date_etl_array --option 3 gives error, do not know why? and how to fix it?
--array(select id from date_etl where local_date >= '02/01/2011' and local_date <= '02/25/2011') && '{1342715,1342739}' --option 2 runs with no error
--date_etl_array && '{1342715,1342739}' --option 1 runs with no error
=#\d preference
date_etl_array | integer[] |
选项1和选项2正在工作,但选项3不是,我不知道为什么以及如何解决它。 我正在尝试与选项3进行数组比较阵列比较
你可以应用一些格式?阅读原样很困难/刺激。 – Wrikken 2010-07-21 17:48:38
设置你的问题的格式,并告诉我们它给你什么错误。提供完整的查询,小片段使其更难以遵循。 – rfusca 2010-07-21 17:59:25
我发现我的问题; 选项3不起作用,因为它将bigint []与integer []进行比较。感谢帮助。 – gottu2000 2010-07-21 20:43:32