2
是否可以從excel運行postgres查詢並在excel中獲取結果?如何將latex和excel連接到postgres?
是否可以從latex運行postgres查詢並在查詢中獲取結果?
答案乳膠:我能得到結果的查詢Postgres裏直接乳膠此鏈接http://hgesser.com/software/latexdb/
是否可以從excel運行postgres查詢並在excel中獲取結果?如何將latex和excel連接到postgres?
是否可以從latex運行postgres查詢並在查詢中獲取結果?
答案乳膠:我能得到結果的查詢Postgres裏直接乳膠此鏈接http://hgesser.com/software/latexdb/
您可以從Excel中通過ODBC driver連接到Postgres的。過程與文章article中描述的MySQL相似。如何傳輸某些查詢的結果的第二種通用可能性是導出爲CSV格式的文件並在Excel中導入。這很簡單,通常完美的作品。
[[email protected] ~]$ psql postgres psql (9.1.9, server 9.4devel) WARNING: psql version 9.1, server version 9.4. Some psql features might not work. Type "help" for help. postgres=# \copy (SELECT * FROM pg_database) TO ~/data.csv CSV HEADER postgres=# \q [[email protected] ~]$ tail ~/data.csv datname,datdba,encoding,datcollate,datctype,datistemplate,datallowconn,datconnlimit,datlastsysoid,datfrozenxid,datminmxid,dattablespace,datacl template1,10,6,en_US.UTF-8,en_US.UTF-8,t,t,-1,12948,1879,1,1663,"{=c/postgres,postgres=CTc/postgres}" template0,10,6,en_US.UTF-8,en_US.UTF-8,t,f,-1,12948,1879,1,1663,"{=c/postgres,postgres=CTc/postgres}" postgres,10,6,en_US.UTF-8,en_US.UTF-8,f,t,-1,12948,1879,1,1663,
相同的機制,你可以使用乳膠http://texblog.org/2012/05/30/generate-latex-tables-from-csv-files-excel/