简体   繁体   English

有没有人使用Redshift来获取Excel数据透视表?

[英]Has anyone used Redshift to source an Excel pivot table?

Is it possible to use Amazon Redshift as the data source for an Excel pivot table? 是否可以使用Amazon Redshift作为Excel数据透视表的数据源? Googling this question didn't yield any obvious answers. 谷歌搜索这个问题并没有产生任何明显的答案。 Thanks. 谢谢。

Yes I have. 是的,我有。

However since the other answers were written, rather than use generic PostGres drivers, you should use customised Redshift Drivers provided by Amazon. 但是,由于编写了其他答案,而不是使用通用的PostGres驱动程序,您应该使用亚马逊提供的自定义Redshift驱动程序。

The answers you are looking for are here: http://docs.aws.amazon.com/redshift/latest/mgmt/configure-odbc-connection.html 您正在寻找的答案如下: http//docs.aws.amazon.com/redshift/latest/mgmt/configure-odbc-connection.html

You can consume Amazon Redshift databases with the PostGRESQL ODBC drivers . 您可以使用PostGRESQL ODBC驱动程序使用Amazon Redshift数据库。

  1. Download and install driver. 下载并安装驱动程序。
  2. Set up a DSN on the box pointed to your Redshift server with your AWS credentials (you can find the ODBC connection string in the settings area of your cluster.) 使用您的AWS凭据在指向Redshift服务器的框上设置DSN(您可以在群集的设置区域中找到ODBC连接字符串。)
  3. Use that connection in Excel or any other product that can connect to ODBC connections. 在Excel或任何其他可以连接到ODBC连接的产品中使用该连接。

You can convert Excel to CSV and upload it to S3. 您可以将Excel转换为CSV并将其上传到S3。 Once files are uploaded to S3 you can run copy command to copy data from S3 to Redshift cluster. 将文件上载到S3后,您可以运行copy命令将数据从S3复制到Redshift集群。 You can run copy command via PostGRESQL JDBC connector or available tools like SqlWorkbench. 您可以通过PostGRESQL JDBC连接器或SqlWorkbench等可用工具运行copy命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM