Re: CREATE TYPE - Mailing list pgsql-general

From Shoaib Mir
Subject Re: CREATE TYPE
Date
Msg-id bf54be870604270404h7135c248mc9719856fc3df5a6@mail.gmail.com
Whole thread Raw
In response to CREATE TYPE  ("Rodrigo Sakai" <rodrigo.sakai@zanthus.com.br>)
List pgsql-general
You can have a looks at http://www.postgresql.org/docs/8.1/static/sql-createtype.html

Regards
/Shoaib

On 4/27/06, Rodrigo Sakai <rodrigo.sakai@zanthus.com.br> wrote:
  Hi all,
 
  I need some help to create types to use in a table. For exemple, I want to create:
 
 
  CREATE TYPE salary_type (
    value NUMERIC(10,2),
    date  DATE
  )
 
 
 CREATE TABLE employee (
    num_employee INT,
    name VARCHAR(60),
    salary  salary_type
  )
 
 
 
  I know I need two functions written in C (input_function, output_function). So, anyone can show me an example of this functions for my type salary_type?
 
  Thanks!

pgsql-general by date:

Previous
From: "Rodrigo Sakai"
Date:
Subject: CREATE TYPE
Next
From: Kenneth Downs
Date:
Subject: Re: SQL Rule