Re: Datatype Definition

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Vincenzo Alberico <v(dot)alberico(at)libero(dot)it>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Datatype Definition
Date: 2003-05-16 18:54:46
Message-ID: Pine.LNX.4.33.0305161254140.4710-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 12 May 2003, Vincenzo Alberico wrote:

> How can I define a synonym datatype called number for the default datatype
> numeric?
> I've this problem because I want to convert Oracle DB schemas to postgresql,
> and I would like not to convert all my script for generating the db.
> TIA

Assuming you're running 7.3, you can do

create domain number as numeric(12,2);

or something similar.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2003-05-16 19:20:21 Re: How to run more the one database at once ?
Previous Message ahoward 2003-05-16 18:49:41 7.3.2, pam, on Linux 2.4.18-18.7.x i686