Re: 7.0.2: Arrays - Mailing list pgsql-hackers

From Kristofer Munn
Subject Re: 7.0.2: Arrays
Date
Msg-id Pine.LNX.4.10.10009051621560.6691-100000@munn.com
Whole thread Raw
In response to 7.0.2: Arrays  (Larry Rosenman <ler@lerctr.org>)
Responses Re: 7.0.2: Arrays  (Larry Rosenman <ler@lerctr.org>)
List pgsql-hackers
On Tue, 5 Sep 2000, Larry Rosenman wrote:

> Greetings,
>     I was trying to use arrays today, and can't seem to get it right. 
> 
> What am I doing wrong?
> 
> ler=# create table ia_standby (hsrp_group int2,
> ler(# router_interfaces[] varchar(64),
> ler(# routers[] varchar(64));

What you want to do is...

create table ia_standby (hsrp_group int2,router_interfaces varchar(64)[],routers varchar(64)[]
);

- K

Kristofer Munn * KMI * 732-254-9305 * AIM KrMunn * http://www.munn.com/



pgsql-hackers by date:

Previous
From: Larry Rosenman
Date:
Subject: 7.0.2: Arrays
Next
From: Larry Rosenman
Date:
Subject: Re: 7.0.2: Arrays