Re: [SQL] Check a value in array

2004-05-05 Thread Contact AR-SD.NET
IL PROTECTED]> Sent: Friday, April 30, 2004 11:18 AM Subject: Re: [SQL] Check a value in array > Il gio, 2004-04-29 alle 19:56, Rod Taylor ha scritto: > > On Thu, 2004-04-29 at 13:37, Marco Lazzeri wrote: > > > Hi all. > > > > > > I have to check if a val

Re: [SQL] Check a value in array

2004-05-04 Thread CoL
hi, Marco Lazzeri wrote: Il gio, 2004-04-29 alle 19:56, Rod Taylor ha scritto: On Thu, 2004-04-29 at 13:37, Marco Lazzeri wrote: Hi all. I have to check if a value is in an array. I've got a date array in a table and I would like to perform queries like: SELECT * FROM table WHERE date IN dates_arra

Re: [SQL] Check a value in array

2004-04-30 Thread Marco Lazzeri
Il gio, 2004-04-29 alle 19:56, Rod Taylor ha scritto: > On Thu, 2004-04-29 at 13:37, Marco Lazzeri wrote: > > Hi all. > > > > I have to check if a value is in an array. > > > > I've got a date array in a table and I would like to perform queries > > like: > > > > SELECT * FROM table WHERE date I

Re: [SQL] Check a value in array

2004-04-29 Thread Rod Taylor
On Thu, 2004-04-29 at 13:37, Marco Lazzeri wrote: > Hi all. > > I have to check if a value is in an array. > > I've got a date array in a table and I would like to perform queries > like: > > SELECT * FROM table WHERE date IN dates_array; If you're using 7.4 or later, try: SELECT * FRO

[SQL] Check a value in array

2004-04-29 Thread Marco Lazzeri
Hi all. I have to check if a value is in an array. I've got a date array in a table and I would like to perform queries like: SELECT * FROM table WHERE date IN dates_array; I've tried using array_contains_date (contrib/array_iterator.sql) function unsuccessfully: SELECT array_contains_date(dat