Excel and pgSQL
An easy way is to export data from Excel to CSV using the function SAVE AS
. Then use the psql native function \COPY
. You can find more information on this using the command \? COPY
in psql or by visiting the docs in COPY .
a source to share
If you do this on a regular basis, you should look into Aqua Data Studio - I found it quite useful.
a source to share
I do this all the time and use Navicat [1] (about $ 79). You will need a window to start the client as linux client cannot import from Excel.
You can import almost any data format (Access, Excel, DBF, Lotus ...), define a mapping between source and destination that can be saved.
By the way, I don't work for Navicat! I just tried several DBA clients and this was by far the best for importing data.
[1] http://www.navicat.com/en/products/navicat_pgsql/pgsql_overview.html
a source to share