Re: Alias for data types?

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Alias for data types?
Дата
Msg-id 3E886B6A.4040106@joeconway.com
обсуждение исходный текст
Ответ на Alias for data types?  (Matt Clark <mclark@rushe.aero.org>)
Список pgsql-novice
Matt Clark wrote:
> Is there a way to define an alias or synonym for a data type?
>
> I have an existing schema (from a Sybase DB), which defines a datatype via the
> SQLServer method:
>
> EXEC sp_addtype XID, 'numeric(16,0)' , 'NULL';
>

Take a look at DOMAINs:

http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/sql-createdomain.html

HTH,

Joe


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

Предыдущее
От: Jens Eliasson
Дата:
Сообщение: Re: Postmaster.pid & Unix domain socket errors, OS X
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Alias for data types?