Withdata Software

Producing high-quality database tools

Main menu

Skip to primary content
Skip to secondary content
  • Withdata Software
  • Blog
  • Categories
  • Tags

Post navigation

← Previous Next →

How to execute sql file via command line for PostgreSQL

by Shiji Pan

Posted on August 29, 2013 by Shiji Pan

Use psql

psql -U username -d myDataBase -a -f myInsertFile

More information: http://blog.manoharbhattarai.com.np/2013/04/03/execute-sql-file-from-command-line-in-postgresql/

  • Facebook
  • Twitter
This entry was posted in PostgreSQL and tagged command line, command line execute sql, PostgreSQL by Shiji Pan. Bookmark the permalink.

Recent Posts

  • Use Cases for Dumping to CSV
  • Convert Text to Speech by CSV / TSV
Withdata Software. ©2004 - 2025 All rights reserved.