| From: | Jonathan Davis <haj(at)idianet(dot)net> |
|---|---|
| To: | pgsql-general(at)postgreSQL(dot)org |
| Subject: | Re: [GENERAL] Trying to make functions in 'C' |
| Date: | 1999-06-08 19:25:28 |
| Message-ID: | 375D6E28.612B2C06@idianet.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
hello
CREATE SEQUENCE seq
INCREMENT 1
MINVALUE 1
START 1
;
CREATE TABLE T (
index int primary key UNIQUE DEFAULT nextval('seq'),
f1 char(5),
f2 char(5)
);
CREATE TABLE T1 (
f3 char(5),
f4 char(5),
f5 char(5)
) INHERITS (T);
CREATE TABLE T2(
cp1 char(5),
cp2 char(5)
) INHERITS (T);
INSERT INTO T1 VALUES ( nextval('seq'), 'joe', 'joe', 'joe', 'joe', 'joe');
INSERT INTO T1 VALUES ( nextval('seq'), 'davis', 'davis', 'davis', 'davis',
'davis');
INSERT INTO T1 VALUES ( nextval('seq'), 'ba', 'ba', 'ba', 'ba', 'ba');
INSERT INTO T2 VALUES ( nextval('seq'), 'aw', 'aw', 'aw', 'aw');
INSERT INTO T2 VALUES ( nextval('seq'), 'es', 'es', 'es', 'es');
SELECT * FROM T*;
this request give me only the fields in table T but I want to give me all
fiels in T1 and T2
how ?
thanks
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jonathan Davis | 1999-06-08 19:50:30 | pb with select |
| Previous Message | Marc Andre Paquin | 1999-06-08 19:04:31 | Syntax upgrade problem: from 6.0 to 6.4 |