Re: Changing datatype of a column

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Ilan Fait <ilan(at)iweb(dot)com>
Cc: "'Pgsql-Sql (E-mail)" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Changing datatype of a column
Date: 2001-06-26 14:43:54
Message-ID: Pine.LNX.4.30.0106261643340.724-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Ilan Fait writes:

> I would like to Know if there any way (and what is the command
> for that) to convert a column datatype
> from int4 to numeric(11) of an existing table that have data
> in it?

No, you have to recreate the table.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2001-06-26 14:54:56 Re: Plsql Function with error: No space left on device.
Previous Message Tom Lane 2001-06-26 14:41:20 Re: Problems using a rule with the WHERE clause