How to Export a PostgreSQL Table to CSV (Using pgAdmin 4)

Publicado em: 05 Junho 2025
no canal de: Ferds Tech Channel
1,340
9

In this video, I will show you how to export a PostgreSQL table into a CSV file.
Below are the steps I followed in the video.

Step 1: Open pgAdmin 4
Launch pgAdmin 4 on your system.
Connect to your PostgreSQL server.

Step 2: Locate Your Table
In the Browser panel:
Servers → your server → Databases → your database → Schemas → public → Tables
Expand the Tables section and find your target table (e.g., network_devices).

Step 3: Right-Click the Table
Right-click on the table name (e.g., network_devices).
Select "Import/Export Data..."

Step 4: Choose Export Settings
In the Import/Export Data window:
Under General tab:
Import/Export: Choose Export
Filename: Choose where to save the CSV file (e.g., C:\Users\YourName\Documents\network_devices.csv)
Format: CSV
Encoding: UTF8

Under Options tab:
Check Header to include column names in the CSV
Leave Delimiter as comma (,)
Leave Quote, Escape, Null string settings as default unless needed

Under Columns tab:
Leave all columns selected (default) if you want to export the entire table

Step 5: Click OK
Click OK to begin exporting the table
You should see a message like “Process completed successfully” if the export worked

Step 6: Verify the Export
Navigate to the file location you selected
Open the CSV file using Excel or any text editor to confirm the data was exported correctly

#postgresql #coding #sql


Nesta página do site você pode assistir ao vídeo on-line How to Export a PostgreSQL Table to CSV (Using pgAdmin 4) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Ferds Tech Channel 05 Junho 2025, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,340 vezes e gostou 9 espectadores. Boa visualização!