Postgresql change column type from int to UUID

后端 未结 7 1586
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-23 13:26

I\'d like to change the column type from an int to a uuid. I am using the following statement

ALTER TABLE tableA ALTER COLUMN colA          


        
7条回答
  •  一生所求
    2020-12-23 14:23

    Just if someone comes across this old topic. I solved the problem by first altering the field into a CHAR type and then into UUID type.

提交回复
热议问题