Re: [GENERAL] Regular expression and array

2009-05-27 Thread Merlin Moncure
On Tue, May 26, 2009 at 11:04 PM, Nick wrote: > I wont go into details about why im using this field as an array but > how would I select all the rows that have the first name 'Tom' out of > the 'names' field? > > CREATE TABLE test ( >    id integer, >    names character varying[] > ); > INSERT IN

[GENERAL] Regular expression and array

2009-05-26 Thread Nick
I wont go into details about why im using this field as an array but how would I select all the rows that have the first name 'Tom' out of the 'names' field? CREATE TABLE test ( id integer, names character varying[] ); INSERT INTO test VALUES (1, '{"''Josh Berkus''","''Peter Eisentraut''",