1

When a new column is added to a current table, this appears in the last column. eg: added AGE columns to Students table SELECT * FROM Students; "would show the AGE column right at the end.

Question: is it possible to change the order of these columns when such commands are executed?

  • Please, read this: [PostgreSQL - Is it possible to alter the column order (position) in a table?](https://tableplus.com/blog/2018/09/postgresql-is-it-possible-to-alter-column-order-position-in-a-table.html) – Maciej Los Sep 11 '20 at 06:13

1 Answers1

0

If you have an existing table, you could create a VIEW with the columns reorganized, then of course, you could also type out the columns. You could also create a new table.

Morgosus
  • 807
  • 5
  • 18