修改字段类型
最近更新时间: 2025-02-18 16:02:00
postgres=# alter table tbase alter column age type float8;
ALTER TABLE
postgres=# \d+ tbase
Table "public.tbase"
Column | Type | Modifiers | Storage | Stats target | Description
----------+------------------+------------------------------------------------+----------+--------------+-----------------
id | integer | not null default nextval('t_id_seq'::regclass) | plain | |
nickname | text | | extended | | TDSQL PG呢称是大象
age | double precision | | plain | |
Has OIDs: no
Distribute By SHARD(id)
Location Nodes: ALL DATANODES