From: | "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> |
---|---|
To: | "bigapple" <bigapple__2002(at)163(dot)com>, "hacker_mailinglist" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: how to use composite type |
Date: | 2002-12-27 02:00:28 |
Message-ID: | GNELIHDDFBOCMGBFGEFOOEMGCEAA.chriskl@familyhealth.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
You can use it in a function:
CREATE FUNCTION test () returns setof test_type as ...
Chris
> -----Original Message-----
> From: pgsql-hackers-owner(at)postgresql(dot)org
> [mailto:pgsql-hackers-owner(at)postgresql(dot)org]On Behalf Of bigapple
> Sent: Friday, 27 December 2002 9:57 AM
> To: hacker_mailinglist
> Subject: [HACKERS] how to use composite type
>
>
> hi,
>
> I created a composite type as follows, but I couldn't know how
> to use it.
>
> test=# create type test_type as (id int, name char(20));
> CREATE TYPE
> test=# create table student( a test_type);
> ERROR: Attribute "a" has composite type test_type
>
> who can tell me? thanks!
>
> bigapple
>
> 2002-12-27
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
From | Date | Subject | |
---|---|---|---|
Next Message | Jeroen T. Vermeulen | 2002-12-27 04:15:47 | Re: MOVE strangeness |
Previous Message | bigapple | 2002-12-27 01:56:58 | how to use composite type |