0

I know that the order is meaningless.

But I want to adjust the order for readability.

Can not change the order of columns in the postgresql?

I am using postico for mac. Thanks.

hyeokluv
  • 377
  • 2
  • 8
  • 18

1 Answers1

0

You could re-create the table with your ordering du jour. However, probably the simplest method is just to query the table with the columns you want:

select col3, col1, col4, . . .
from t;

You can wrap this in a view so you can use it anytime in the future:

create view v_t as
    select col3, col1, col4, . . .
    from t;
Gordon Linoff
  • 1,242,037
  • 58
  • 646
  • 786