Fer*_*eak 3 postgresql types casting create-table
我想用以下查询创建一个表:
create table something as
select
other_id,
other_title,
'0.0.0.0' as IP,
1 as used
from
other_table
Run Code Online (Sandbox Code Playgroud)
但Postgres抱怨说:
Run Code Online (Sandbox Code Playgroud)column "ip" has type "unknown"
如何将其指定为类型char?
| 归档时间: |
|
| 查看次数: |
3438 次 |
| 最近记录: |