Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to run the copy command for Amazon Redshift

I have been running in circles trying to figure out 'where' to run the COPY command for Amazon Redshift from. All the documentation just says "run the COPY command" without actually stating where to run it from.

I have downloaded AWS CLI; I have configured SQL Workbench and connected it to Redshift. I have logged into Redshift service. No where do I see a place where I can input the COPY command.

Even google search just throws up "run the COPY command".

like image 220
Amit Avatar asked May 11 '16 07:05

Amit


2 Answers

Amazon Redshift presents itself as a PostgreSQL database. The COPY command is an extension of SQL supported by Redshift. Therefore, the COPY command needs to be issued from an SQL client.

You mention that you have configured SQL Workbench. Once you connect to the Redshift cluster, run the command from within that connection.

There is a free self-paced lab on Amazon Redshift available at qwikLABS -- just search for Redshift. That will give you an introduction to connecting into and using REdshift.

like image 103
John Rotenstein Avatar answered Sep 28 '22 15:09

John Rotenstein


COPY command is to be run from SQL client, like SQL Workbench.

like image 38
Amit Avatar answered Sep 28 '22 16:09

Amit