Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.postgresql > #273
| From | Michael Hufschmidt <Michael.Hufschmidt@omnis.net> |
|---|---|
| Newsgroups | comp.databases.postgresql |
| Subject | Column Order |
| Date | 2011-11-04 12:18 +0100 |
| Message-ID | <9hi005F3v8U1@mid.individual.net> (permalink) |
Hi @ all, When I do a "SELECT * FROM myTable WHERE ..." using psql I want to have the columns displayed in a meaningful order by default. I want to avoid a "SELECT firstname, lastname, <many other cols to follow> ...". Is it possible to modify the order of columns with an ALTER TABLE myTable ALTER COLUMN lastname <put behind firstname> Same holds for adding a new column, how can I ALTER TABLE myTable ADD COLUMN title VARCHAR(255) <put before firstname> This is possible in mySQL, not in PostgreSQL? Any ideas are welcome - Michael
Back to comp.databases.postgresql | Previous | Next — Next in thread | Find similar
Column Order Michael Hufschmidt <Michael.Hufschmidt@omnis.net> - 2011-11-04 12:18 +0100
Re: Column Order Robert Klemme <shortcutter@googlemail.com> - 2011-11-04 17:39 +0100
Re: Column Order Matthew Woodcraft <mattheww@chiark.greenend.org.uk> - 2011-11-04 18:29 +0000
Re: Column Order Matthew Woodcraft <mattheww@chiark.greenend.org.uk> - 2011-11-04 18:23 +0000
csiph-web