- 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.
- ArchiCAD 19:The Definitive Guide
- Clojure Data Analysis Cookbook
- Getting Started with MariaDB
- 離散事件系統建模與仿真
- Visual C# 2008開發技術實例詳解
- 模型制作
- Windows程序設計與架構
- Docker Quick Start Guide
- 現代傳感技術
- Implementing Oracle API Platform Cloud Service
- 運動控制器與交流伺服系統的調試和應用
- 高維聚類知識發現關鍵技術研究及應用
- 中國戰略性新興產業研究與發展·工業機器人
- Containers in OpenStack
- SAP Business Intelligence Quick Start Guide