- Mastering PostGIS
- Dominik Mikiewicz Michal Mackiewicz Tomasz Nycz
- 158字
- 2021-07-02 22:52:20
Importing data using psql
Psql is the pgsql's command-line tool. While one can achieve quite a lot with GUI based database management utilities, psql is very useful when one needs to handle database backups, management and alike via scripting. When there is no GUI installed on the server, psql becomes pretty much the only option so it is worth being familiar with it even if you're not a fan.
In order to import the data in psql we will use a \COPY command. This requires us to define the data model for the incoming data first.
Defining the table data model from a text file may be prone to errors that will prevent data from being imported. If for of some reason you are not sure what data types are stored in the particular columns of your source file you can import all the data as text and then re-cast it as required at a later time.
- 空間機器人遙操作系統及控制
- 程序設計缺陷分析與實踐
- Photoshop CS4經典380例
- 圖形圖像處理(Photoshop)
- 2018西門子工業專家會議論文集(上)
- 工業機器人工程應用虛擬仿真教程:MotoSim EG-VRC
- Embedded Programming with Modern C++ Cookbook
- 西門子變頻器技術入門及實踐
- LAMP網站開發黃金組合Linux+Apache+MySQL+PHP
- Azure PowerShell Quick Start Guide
- 激光選區熔化3D打印技術
- 格蠹匯編
- 液壓機智能故障診斷方法集成技術
- 水晶石影視動畫精粹:After Effects & Nuke 影視后期合成
- FANUC工業機器人配置與編程技術