Re: Convert DECIMAL MySql field to PostGre. How?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Andre Lopes <lopes80andre(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Convert DECIMAL MySql field to PostGre. How?
Date: 2009-10-11 15:37:03
Message-ID: 6697.1255275423@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> 2009/10/11 Andre Lopes <lopes80andre(at)gmail(dot)com>:
>> I have designed a database using MySql, but now I decided to move to
>> PostGre. I hava decimal fields with DECIMAL(10,6). How to convert this
>> fields to PostGre?

> use type NUMERIC(10,6)

DECIMAL works just fine too; it's an alias for NUMERIC.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jignesh Shah 2009-10-11 16:00:42 Re: What is statement ID of table?
Previous Message A. Kretschmer 2009-10-11 14:36:37 Re: What is statement ID of table?