如何将latex和excel连接到postgres?

如何将latex和excel连接到postgres?,excel,postgresql,latex,Excel,Postgresql,Latex,是否可以从excel运行postgres查询并在excel中获取结果 是否可以从latex运行postgres查询并在查询位置获取结果 latex的答案:我可以直接在latex中获得postgres中的查询结果,通过此链接您可以通过从Excel连接到postgres。该过程类似于本文中描述的MySQL。第二种通用的方法是将查询结果导出为CSV格式文件并导入Excel。它很简单,通常工作得很完美 [pavel@localhost ~]$ psql postgres psql (9.1.9, ser

是否可以从excel运行postgres查询并在excel中获取结果

是否可以从latex运行postgres查询并在查询位置获取结果


latex的答案:我可以直接在latex中获得postgres中的查询结果,通过此链接

您可以通过从Excel连接到postgres。该过程类似于本文中描述的MySQL。第二种通用的方法是将查询结果导出为CSV格式文件并导入Excel。它很简单,通常工作得很完美

[pavel@localhost ~]$ 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 [pavel@localhost ~]$ 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, 同样的机制,你可以使用乳胶