Re: Another question about composite types

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: rodrigo(dot)sakai(at)zanthus(dot)com(dot)br, pgsql-sql(at)postgresql(dot)org
Subject: Re: Another question about composite types
Date: 2006-11-13 17:46:05
Message-ID: 277719.72609.qm@web31811.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> CREATE TYPE t_salary AS (Value numeric(10,2), Validity date);
> CREATE TABLE employee (id int, name varchar(30), salary t_salary[]);
>
> That is, I need an array of composite type and searching on google I found
> that is impossible to do it! Is it really impossible? Anyone have do it ?

Why not use a conventional table to hold this information that references your employee table?

Regards,

Richard Broersma Jr.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message ivan marchesini 2006-11-13 17:48:33 Re: drop a check
Previous Message Richard Broersma Jr 2006-11-13 17:42:29 Re: RES: Inserting data in composite types!