pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feed7.0.2: Arrays
4+ messages / 3 participants
[nested] [flat]
* 7.0.2: Arrays
@ 2000-09-05 19:56 Larry Rosenman <ler@lerctr.org>
2000-09-05 20:22 ` Re: [HACKERS] 7.0.2: Arrays Kristofer Munn <kmunn@munn.com>
2000-09-05 20:38 ` Re: 7.0.2: Arrays Jie Liang <jliang@ipinc.com>
0 siblings, 2 replies; 4+ messages in thread
From: Larry Rosenman @ 2000-09-05 19:56 UTC (permalink / raw)
To: pgsql-hackers@hub.org; pgsql-sql@hub.org
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));
ERROR: parser: parse error at or near "["
ler=# create table ia_standby (hsrp_group int2,
ler(# router_interfaces[] text,
ler(# routers[] text);
ERROR: parser: parse error at or near "["
ler=#
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: [HACKERS] 7.0.2: Arrays
2000-09-05 19:56 7.0.2: Arrays Larry Rosenman <ler@lerctr.org>
@ 2000-09-05 20:22 ` Kristofer Munn <kmunn@munn.com>
2000-09-05 20:30 ` Re: [HACKERS] 7.0.2: Arrays Larry Rosenman <ler@lerctr.org>
1 sibling, 1 reply; 4+ messages in thread
From: Kristofer Munn @ 2000-09-05 20:22 UTC (permalink / raw)
To: Larry Rosenman <ler@lerctr.org>; +Cc: pgsql-hackers@hub.org; pgsql-sql@hub.org
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/
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: [HACKERS] 7.0.2: Arrays
2000-09-05 19:56 7.0.2: Arrays Larry Rosenman <ler@lerctr.org>
2000-09-05 20:22 ` Re: [HACKERS] 7.0.2: Arrays Kristofer Munn <kmunn@munn.com>
@ 2000-09-05 20:30 ` Larry Rosenman <ler@lerctr.org>
0 siblings, 0 replies; 4+ messages in thread
From: Larry Rosenman @ 2000-09-05 20:30 UTC (permalink / raw)
To: Kristofer Munn <kmunn@munn.com>; +Cc: pgsql-hackers@hub.org; pgsql-sql@hub.org
Ok, so I can't read. Thanks!
LER
* Kristofer Munn <kmunn@munn.com> [000905 15:27]:
> 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/
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: 7.0.2: Arrays
2000-09-05 19:56 7.0.2: Arrays Larry Rosenman <ler@lerctr.org>
@ 2000-09-05 20:38 ` Jie Liang <jliang@ipinc.com>
1 sibling, 0 replies; 4+ messages in thread
From: Jie Liang @ 2000-09-05 20:38 UTC (permalink / raw)
To: Larry Rosenman <ler@lerctr.org>; +Cc: pgsql-hackers@hub.org; pgsql-sql@hub.org
Hi, there
Your syntax is not correct, pls check the Pg documentatation, the
correction as following.
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),
==>router_interfaces varchar(64)[],
>
> ler(# routers[] varchar(64));
> ERROR: parser: parse error at or near "["
> ler=# create table ia_standby (hsrp_group int2,
> ler(# router_interfaces[] text,
==>router_interfaces text[],
>
> ler(# routers[] text);
> ERROR: parser: parse error at or near "["
> ler=#
>
> --
> Larry Rosenman http://www.lerctr.org/~ler
> Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
> US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
--
Jie LIANG
Internet Products Inc.
10350 Science Center Drive
Suite 100, San Diego, CA 92121
Office:(858)320-4873
jliang@ipinc.com
www.ipinc.com
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2000-09-05 20:38 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-09-05 19:56 7.0.2: Arrays Larry Rosenman <ler@lerctr.org>
2000-09-05 20:22 ` Kristofer Munn <kmunn@munn.com>
2000-09-05 20:30 ` Larry Rosenman <ler@lerctr.org>
2000-09-05 20:38 ` Jie Liang <jliang@ipinc.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox