Re: [SQL] Inserting values in arrays

2005-03-15 Thread Robert . Farrugia
-sql@postgresql.org Subject Re: [SQL] Inserting values in arrays [EMAIL PROTECTED] wrote: > CREATE TABLE test ( details varchar[]); > CREATE TABLE test2 ( textvalue1 varchar, textvalue2 varchar); > INSERT INTO test2 VALUES ('Hello1', 'World1'); > INSERT INTO

Re: [SQL] Inserting values in arrays

2005-03-15 Thread Richard Huxton
[EMAIL PROTECTED] wrote: CREATE TABLE test ( details varchar[]); CREATE TABLE test2 ( textvalue1 varchar, textvalue2 varchar); INSERT INTO test2 VALUES ('Hello1', 'World1'); INSERT INTO test2 VALUES ('hello2', 'World2'); and I am expecting the following rows in test {'Hello1', 'World1'} {'Hello2',

[SQL] Inserting values in arrays

2005-03-14 Thread Robert . Farrugia
I have the following issue. Given the following tables: CREATE TABLE test ( details varchar[]); CREATE TABLE test2 ( textvalue1 varchar, textvalue2 varchar); INSERT INTO test2 VALUES ('Hello1', 'World1'); INSERT INTO test2 VALUES ('hello2', 'World2'); I would like to insert a row in test for ea