Hi Tom The bit I was reading is ______ EXTRACT ________ However, this quickly becomes tedious for large arrays, and is not helpful if the size of the array is uncertain. An alternative method is described in Section 9.20. The above query could be replaced by: SELECT * FROM sal_emp WHERE 10000 = ANY (pay_by_quarter); In addition, you could find rows where the array had all values equal to 10000 with: SELECT * FROM sal_emp WHERE 10000 = ALL (pay_by_quarter); ________ END EXTRACT __________ (section 9.20 is the bit that suggests the syntax I was trying) <> ALL is not working. I thought it would fail if the LS does not match every array member of the RS. What I'm trying to do is find every record where "my name" is not in the array. So I tried <> ANY and also <> ALL and both returned an empty row set. regards Grant On 28/09/2009, at 11:42 AM, Tom Lane wrote:
|