pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Ilan Fait <ilan@iweb.com>
Cc: 'Pgsql-Sql (E-mail) <pgsql-sql@postgresql.org>
Subject: Re: Changing datatype of a column
Date: Tue, 26 Jun 2001 16:43:54 +0200 (CEST)
Message-ID: <Pine.LNX.4.30.0106261643340.724-100000@peter.localdomain> (raw)
In-Reply-To: <C9E46ACE328FD311B70200508B91AD8CA8FED8@EXCHANGE>

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@gmx.net   http://funkturm.homeip.net/~peter




view thread (3+ messages)  latest in thread

Message-ID: <Pine.LNX.4.30.0106261643340.724-100000@peter.localdomain>
Permalink:  ../Pine.LNX.4.30.0106261643340.724-100000@peter.localdomain/
Also on:    postgresql.org/message-id/Pine.LNX.4.30.0106261643340.724-100000@peter.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: peter_e@gmx.net, ilan@iweb.com
  Subject: Re: Changing datatype of a column
  In-Reply-To: <Pine.LNX.4.30.0106261643340.724-100000@peter.localdomain>
  References: <C9E46ACE328FD311B70200508B91AD8CA8FED8@EXCHANGE> <Pine.LNX.4.30.0106261643340.724-100000@peter.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox