How do I alter the position of a column in a PostgreSQL database table?

前端 未结 9 1561
[愿得一人]
[愿得一人] 2020-11-30 00:25

I\'ve tried the following, but I was unsuccessful:

ALTER TABLE person ALTER COLUMN dob POSITION 37;
9条回答
  •  野性不改
    2020-11-30 00:53

    There are some workarounds to make it possible:

    1. Recreating the whole table

    2. Create new columns within the current table

    3. Create a view

    https://tableplus.com/blog/2018/09/postgresql-is-it-possible-to-alter-column-order-position-in-a-table.html

提交回复
热议问题