Re: [SQL] expressions operating on arrays

2002-08-08 Thread h012
thanks for the pointer, I'm now able to use the operators in expressions! w.r.t. modifying the array contents: I looked through /usr/lib/pgsql/contrib/intarray/_int.sql.in , but it didn't make me any smarter. Are the "..._union" and "..._picksplit" functions supposed to add into and remove

Re: [SQL] expressions operating on arrays

2002-08-08 Thread Oleg Bartunov
Look at contrib/intarray. You'll get an index access as a bonus Oleg On Fri, 9 Aug 2002 [EMAIL PROTECTED] wrote: > > > Hi, > > I would like to say: > > create table test1 (array1 int4[]); > insert into test1 values ('{123,234,345}'); > insert into test1 values ('{456,567,678}'); > >

Re: [SQL] expressions operating on arrays

2002-08-08 Thread Achilleus Mantzios
look at /usr/local/src/postgresql-7.2.1/contrib/intarray -- Achilleus Mantzios S/W Engineer IT dept Dynacom Tankers Mngmt Nikis 4, Glyfada Athens 16610 Greece tel:+30-10-8981112 fax:+30-10-8981877 email: [EMAIL PROTECTED] [EMAIL PROTECTED] ---(end of b

[SQL] expressions operating on arrays

2002-08-08 Thread h012
Hi, I would like to say: create table test1 (array1 int4[]); insert into test1 values ('{123,234,345}'); insert into test1 values ('{456,567,678}'); now what I don't know how to do: -- consider contents of array: select * from test1 where array1 CONTAINS 567; -- APPEND '789' to array in

Re: [SQL] Table Sorting and Limit Question

2002-08-08 Thread Ludwig Lim
--- Dawn Hollingsworth <[EMAIL PROTECTED]> wrote: > > > Currently we have a table with a sequence number( id > ) as a primary key, > a date field which is indexed and several other > columns. The user > interface allows the user to sort the data by date > and limits the result > set to 100 rows

[SQL] Table Sorting and Limit Question

2002-08-08 Thread Dawn Hollingsworth
Currently we have a table with a sequence number( id ) as a primary key, a date field which is indexed and several other columns. The user interface allows the user to sort the data by date and limits the result set to 100 rows. The question is: The user interface needs the capability to sort