TDSQL PostgreSQL版 自定义复合类型

postgres=# create type my_type as (f1 int,f2 varchar(10));CREATE TYPE。

相关产品
TDSQL PostgreSQL版 产品页,含版本规格、价格与购买入口。

一、数据表使用复合类型

postgres=# create table t_my_type (f1 int,f_my_type my_type);CREATE TABLEpostgres=# insert into t_my_type values(1,row(1,'tdsql_pg'));INSERT 0 1postgres=# select f1,(f_my_type).f2 from t_my_type; f1 | f2 —-+——- 1 | tdsql_pg(1 row)

赞 (0)
上一篇 4天前
下一篇 4天前