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

Опубликовано: 05 Июнь 2025
на канале: 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


На этой странице сайта вы можете посмотреть видео онлайн How to Export a PostgreSQL Table to CSV (Using pgAdmin 4) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Ferds Tech Channel 05 Июнь 2025, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,340 раз и оно понравилось 9 зрителям. Приятного просмотра!