How to create a type ?

Поиск
Список
Период
Сортировка
От Ines Klimann
Тема How to create a type ?
Дата
Msg-id 3A895ED7.B4A06EA1@liafa.jussieu.fr
обсуждение исходный текст
Ответы Re: How to create a type ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: How to create a type ?  (Jie Liang <jliang@ipinc.com>)
Список pgsql-sql
Hello,

I am trying to understand how works CREATE TYPE, but it seems to
be too difficult for me...

Can someone help me ?

I have tried this :
----------------------------------
create function personne_in(text)
returns personne
as 'select $1;'
language 'sql';

create function personne_out(text)
returns text
as 'select $1;'
language 'sql';

create type personne (
internallength = variable,
input = personne_in,
output = personne_out
);
---------------------------------
but it is full of mistakes.

Even a simple example in language 'sql' will help me.

Thanks,
Ines.


В списке pgsql-sql по дате отправления:

Предыдущее
От: Dave Wedwick
Дата:
Сообщение: Trigger question
Следующее
От: Jaros³aw B³¹d
Дата:
Сообщение: Re: binary operators