Re: Field sizes and structure

From: "Williams, Travis L, NPONS" <tlw(at)att(dot)com>
To: "Robert Fitzpatrick" <robert(at)webtent(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Field sizes and structure
Date: 2002-12-09 23:04:57
Message-ID: AB815D267EC31A4693CC24D234F829160318F486@ACCLUST02EVS1.ugd.att.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

do a \h on alter table (in psql) and you will get a big list of examples
of how to alter a table.. so you can change it from say varchar(5) to
varchar(25).. I don't think you order matters as you can select what you
want.. and what order during the select statement.. so if you have
columns a,b,c,d and you want the order to be c,b,a,d just do a select
c,b,a,d from whatver and thats the order you will get your information
in..

Travis

-----Original Message-----
From: Robert Fitzpatrick [mailto:robert(at)webtent(dot)com]
Sent: Monday, December 09, 2002 3:44 PM
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] Field sizes and structure

This is my first message to the list, I hope it is not so simple that it
offends anyone, but the 2 books I have do not seem to answer the
questions I have and searching different archives seem to present
thousands of posts to review.

If possible, once a table is created, how can a field size be changed?
And also, the field position in the table? Not that I've had a need for
position and can't thing of why it would matter, just thought I'd add
that one to see if it is possible in the future.

Thanks,

Robert

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike Mascari 2002-12-09 23:06:46 Re: Is NULL equal to NULL or not?
Previous Message Peter Darley 2002-12-09 23:02:49 Re: Slow Lazy Vacuum (was Size for vacuum_mem)