Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6207067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:33:46+00:00 2026-05-24T05:33:46+00:00

I want to dump a database. I have three tables: table1 table2 table3 From

  • 0

I want to dump a database.

I have three tables:

table1
table2
table3

From table1 i want the schema plus data.

From table2 and table3 i just want the schema.

How do i do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:33:48+00:00Added an answer on May 24, 2026 at 5:33 am

    To get data from just a few tables:

    pg_dump myDatabase –inserts -a -t table1 -t table2 > backup.sql;

    pg_dump myDatabase –inserts -a -t seq1 -t seq2 > backupSequences.sql;

    Parameters descriptions:

    -a, –data-only dump only the data, not the schema

    -t, –table=TABLE dump the named table(s) only

    –inserts dump data as INSERT commands, rather than
    COPY

    This is what i wanted 🙂

    Thanks all!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting data from my database and I want to have that data
I want to dump mysql database only the tables which have data, Can u
I have basically MySQL dump from a WordPress database with some data. The whole
I have a sql schema dump from phpmyadmin. I want to create a new
I have a large database, and I want to dump the data after custom
Seeing lots of SOAP/RDS stuff, but just want to dump some MySQL data and/or
We have a db dump import script from our production db that we use
i retrieve data from upc database and then want to insert the data into
I have created a PostgreSQL database dump using psql . Now I want to
I have NSMutable array that holds data captured from external sensor through iphone. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.