我想把列类型从int
改为uuid
.我使用下面的语句
ALTER TABLE tableA ALTER COLUMN colA SET DATA TYPE UUID;
但我收到了错误信息
ERROR: column "colA" cannot be cast automatically to type uuid
HINT: Specify a USING expression to perform the conversion.
我不知道如何用USING
来做演员.