简体   繁体   English

通过PHP查询Amazon Redshift数据库

[英]Query Amazon Redshift Database Through PHP

Is it possible to query a Amazon Redshift database through PHP with AWS SDK for PHP , and if so, what classes would I include and what functions would I call? 是否可以使用适用于PHPAWS SDK for PHP通过PHP查询Amazon Redshift数据库,如果可以,我将包括哪些类以及我将调用哪些函数? I'm having trouble finding the documentation for that on their site. 我在他们的网站上找不到相关文档。 I see documentation ( http://docs.aws.amazon.com/aws-sdk-php/v2/guide/service-redshift.html ) to use the Factory function within the Aws\\Redshift\\RedshiftClient class to log into the client object that is the Redshift database, but I don't see any documentation to query that database after you've connected to it. 我看到文档( http://docs.aws.amazon.com/aws-sdk-php/v2/guide/service-redshift.html )使用Aws\\Redshift\\RedshiftClient类中的Factory函数登录到客户端对象是Redshift数据库,但在连接到该数据库后,我看不到任何文档可查询该数据库。

No, you would use the same method to query Redshift that you would to query a PostgreSQL database. 不,您将使用与查询PostgreSQL数据库相同的方法来查询Redshift。 You can't use the AWS SDK to query Redshift. 您不能使用AWS开发工具包查询Redshift。

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

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