导入oid列值
最近更新时间: 2025-02-18 16:02:00
postgres=# \! cat /data/pgxz/t.txt
35242 1 TDSQL PG \N 7
35243 2 pg'", xc% 2017-10-28 18:24:05.643102 3
35340 3 pgxz 2017-10-28 18:24:05.645691 \N
postgres=# truncate table t;
TRUNCATE TABLE
postgres=# copy t from '/data/pgxz/t.txt' (oids true);
COPY 3
postgres=# select oid,* from t;
oid | f1 | f2 | f3 | f4
-------+----+----------------+----------------------------+----
35242 | 1 | TDSQL PG | | 7
35243 | 2 | pg'", xc% | 2017-10-28 18:24:05.643102 | 3
35340 | 3 | pgxz | 2017-10-28 18:24:05.645691 |
(3 rows)