Created
November 20, 2013 16:21
-
-
Save randyzwitch/7566041 to your computer and use it in GitHub Desktop.
Redshift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("RPostgreSQL") | |
#Connect to Redshift | |
redshift.Connection <- dbConnect(dbDriver("PostgreSQL"), host="XXXXXXXXXXXXXXX.redshift.amazonaws.com", dbname="XXXXXXXX", | |
user="XXXXXXX", password= "XXXXXXXXXX", port=XXXXXXXX) | |
query_string <- | |
"select * | |
from table | |
where something = 'True';" | |
results <- dbGetQuery(redshift.Connection, query_string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment