Skip site navigation (1) Skip section navigation (2)

Defining aliases for types. Can it be done?

From: Stephen Ingram <ingram(at)samsix(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Defining aliases for types. Can it be done?
Date: 2001-12-15 22:04:02
Message-ID: 20011215221158.TBFV16381.femail38.sdc1.sfba.home.com@there (view raw or flat)
Thread:
Lists: pgsql-novice
Hi,

If I have a field in a table, say

streetname     varchar(50)     NOT NULL

Is there any (easy :) ) way to 'alias' the varchar(50) to a user defined type
like  'streettype' ?

Cheers

steve


pgsql-novice by date

Next:From: Josh BerkusDate: 2001-12-15 22:14:23
Subject: Re: Import DB from DOS- dbase4
Previous:From: Fernando M. MarescaDate: 2001-12-15 21:50:01
Subject: Import DB from DOS- dbase4

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group