If I have a table with the columns:
id | name | created_date
and would like to add a column, I use:
alter table my_table add column email varchar(255)
Then the column is added after the created_date column.
Is there any way I can specify the position for the new column? e.g. so I can add it after name and get a table like:
id | name | email | created_date

viewthat show's it in that order... technically the position of the column shouldn't matter as you can define them in any order in a query... and you generally shouldn't be doing aselect *– xenoterracide Jun 12 '11 at 16:00psql -Eswitch to see the actual query) – Jack Douglas♦ Jun 13 '11 at 8:06