I have a database (it's Postgres, if that matters) and I would like to take two of its tables, export them, and then import them into another database. How do I do that?
Edited to add Google bait: dump load
databasepostgresqlsql
I have a database (it's Postgres, if that matters) and I would like to take two of its tables, export them, and then import them into another database. How do I do that?
Edited to add Google bait: dump load
Best Answer
Use pg_dump with the -t option (which you can specify multiple times):
Restore in the new database: