Re: Reordering columns in a table - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: Reordering columns in a table
Date
Msg-id 20060106183852.GC1989@kaufbach.delug.de
Whole thread Raw
In response to Re: Reordering columns in a table  (John McCawley <nospam@hardgeus.com>)
Responses Re: Reordering columns in a table
List pgsql-general
John McCawley <nospam@hardgeus.com> schrieb:

> I believe that it makes a lot of practical difference, just like organizing
> related code into files, classes etc. is important for clarity.  This isn't
> a trivial thing, and the other (sarcastic?) suggestion that I reorder my
> select misses the point.

Not really sarcastic. You can't expect the order of values in a table,
and you can't expect the order of columns in a table.

If you do a 'select * from ...', and the table-structure is changed,
then you get problems. If you do a 'select col1, col2, col2, ... coln
...'), no problems.

A (german) article about this (with mysql):
http://php-faq.de/q/q-sql-select.html


HTH, Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problems reading dump files coming from version 7.1 into version 8.1.
Next
From: "Bruno Almeida do Lago"
Date:
Subject: More atomic online backup