0
是否有可能通過PHP
與AWS SDK for PHP
查詢Amazon Redshift
數據庫,如果有,將包含哪些類以及我將調用哪些函數?我無法在其網站上找到相關文檔。我看到文檔(http://docs.aws.amazon.com/aws-sdk-php/v2/guide/service-redshift.html)使用Aws\Redshift\RedshiftClient
類中的Factory
函數登錄到Redshift數據庫的客戶端對象,但我沒有看到任何文檔在連接到該數據庫後查詢該數據庫。通過PHP查詢Amazon Redshift數據庫
好吧,我可以用'pg_connect()'連接到數據庫,用'pg_query()'查詢並使用這裏列出的其他函數:http://php.net/manual/en/book。 pgsql.php? – jerbear
是的。 Redshift與PostgreSQL兼容。閱讀:http://docs.aws.amazon.com/redshift/latest/dg/c_redshift-and-postgres-sql.html –