【发布时间】:2013-12-27 18:27:40
【问题描述】:
我想用以下查询创建一个表:
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 类型?
【问题讨论】:
标签: postgresql types casting create-table