Export specific rows from a PostgreSQL table as INSERT SQL script

后端 未结 9 718
野趣味
野趣味 2020-11-30 17:01

I have a database schema named: nyummy and a table named cimory:

create table nyummy.cimory (
  id numeric(10,0) not null,
  name c         


        
9条回答
  •  离开以前
    2020-11-30 17:27

    have u tried in pgadmin executing query with " EXECUTE QUERY WRITE RESULT TO FILE " option

    its only export the data, else try like

    pg_dump -t view_name DB_name > db.sql
    

    -t option used for ==> Dump only tables (or views or sequences) matching table, refer

提交回复
热议问题