删除字段

最近更新时间: 2025-02-18 16:02:00

  • 复制
    复制成功
postgres=# alter table tbase drop column age;
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呢称是大象
Has OIDs: no
Distribute By SHARD(id)
        Location Nodes: ALL DATANODES