AS SELECT我想創建具有以下查詢表:Postgres的CREATE TABLE未知列類型
create table something as
select
other_id,
other_title,
'0.0.0.0' as IP,
1 as used
from
other_table
但Postgres的抱怨說:
column "ip" has type "unknown"
我怎樣才能指定它的類型是char
?
或者::如果您不想將其作爲真正的IP處理 – frlan