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

Re: type conversion

From: John DeSoi <desoi(at)pgedit(dot)com>
To: manaus <s_incocciati(at)hotmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: type conversion
Date: 2009-09-14 13:54:04
Message-ID: (view raw or whole thread)
Lists: pgsql-novice
On Sep 13, 2009, at 1:31 PM, manaus wrote:

> I created a table with integer instead of boolean, but now I need to  
> change it. PdAdmin wont let me do it. Should I drop the (empty)  
> table and start again?

See the SQL command ALTER TABLE and read the section on ALTER  
[ COLUMN ] column [ SET DATA ] TYPE type [ USING expression ].

John DeSoi, Ph.D.

In response to

pgsql-novice by date

Next:From: guillaume lemireDate: 2009-09-14 23:10:05
Subject: Missing password
Previous:From: Harshad RJDate: 2009-09-14 04:34:22
Subject: Re: Reason for PG being seemingly I/O bound?

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