| From: | Harry Broomhall <harry(dot)broomhall(at)uk(dot)easynet(dot)net> |
|---|---|
| To: | pgsql-novice(at)postgresql(dot)org |
| Subject: | Re: Problems with arrays |
| Date: | 2003-07-07 17:40:52 |
| Message-ID: | 200307071740.SAA33618@haeb.noc.uk.easynet.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
Harry Broomhall writes:
> I am trying to use the array types in PgSQL, and am obviously missing
> something!
>
>
> swipe2test=> create table test_arr (id integer, ratecardlist integer[]);
> CREATE TABLE
> swipe2test=> insert into test_arr (id) values (1);
> INSERT 183981491 1
> swipe2test=> select * from test_arr;
> id | ratecardlist
> ----+--------------
> 1 | (null)
> (1 row)
>
> swipe2test=> update test_arr set ratecardlist[1:3] = '{3,4,5}' where id = 1;
> UPDATE 1
>
> swipe2test=> select * from test_arr;
> id | ratecardlist
> ----+--------------
> 1 | (null)
> (1 row)
>
> Er - huh?
>
> So what did I miss?
>
I forgot some important info with the above:
OS: FreeBSD 5.0-RELEASE
PgSQL: 7.3.3
Regards,
Harry.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | phil campaigne | 2003-07-07 19:04:29 | Query combining columns |
| Previous Message | Harry Broomhall | 2003-07-07 17:05:52 | Problems with arrays |