📜  postgres grep 整个数据库 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:25.260000             🧑  作者: Mango

代码示例1
$ pg_dump --data-only --inserts -U postgres your-db-name > a.tmp
$ grep United a.tmp
INSERT INTO countries VALUES ('US', 'United States');
INSERT INTO countries VALUES ('GB', 'United Kingdom');