From: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
To: A. Kretschmer <andreas.kretschmer@schollglas.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Position of a field
Date: Tue, 27 Feb 2007 09:48:57 -0300
Message-ID: <55c095e90702270448p604c906flc5203315f4acdb48@mail.gmail.com> (raw)
In-Reply-To: <20070227121737.GD14945@a-kretschmer.de>
References: <55c095e90702270351j7ee26c13o1a13f2a6c6b48eaf@mail.gmail.com>
<20070227121737.GD14945@a-kretschmer.de>
I understant you inquiry but I don't meant to add all the fields order
in an insert statement.
IE:
insert into table values (value1, value2, value3....)
is better than
insert into table (column1,column2,column3 ...) values (value1,
value2, value3....)
If there is only one way (recreating) that was not good for me.
Regards
Ezequias
2007/2/27, A. Kretschmer <andreas.kretschmer@schollglas.com>:
> am Tue, dem 27.02.2007, um 8:51:27 -0300 mailte Ezequias Rodrigues da Rocha folgendes:
> > Hi list,
> >
> > I just would like to know if it is possible to change the position of
> > a field in a table. I am seen in pgAdmin3 that there is a position but
> > on th is application I can't see if there is a place to do that.
>
> Why do you want to do this? You can define the order of the fields in
> the SELECT-Statement. Other way: you can create a VIEW. And another way:
> you can recreate the table (create new_table as select <cols in desired
> order> from old_table, drop old_table, rename new_tabel to old_table)
>
>
> Andreas
> --
> Andreas Kretschmer
> Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
> GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Atenciosamente (Sincerely)
Ezequias Rodrigues da Rocha
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
A pior das democracias ainda é melhor do que a melhor das ditaduras
The worst of democracies is still better than the better of dictatorships
http://ezequiasrocha.blogspot.com/
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ezequias.rocha@gmail.com, andreas.kretschmer@schollglas.com
Subject: Re: Position of a field
In-Reply-To: <55c095e90702270448p604c906flc5203315f4acdb48@mail.gmail.com>
* 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