使用將查詢結果創建數據表
更新時間 2025-02-14 10:21:44
最近更新時間: 2025-02-14 10:21:44
分享文章
本文為您介紹如何使用查詢結果創建數據表。
teledb=# insert into t values(1,'teledb');
INSERT 0 1
teledb=# create table t_as as select * from t;
INSERT 0 1
teledb=# select * from t_as;
id | mc
----+----------
1 | teledb
(1 row)查看表結構。