Skip to content

Instantly share code, notes, and snippets.

@bobthecat
Created March 19, 2013 10:28
Show Gist options
  • Save bobthecat/5195075 to your computer and use it in GitHub Desktop.
Save bobthecat/5195075 to your computer and use it in GitHub Desktop.
library(RMySQL)
con <- dbConnect(MySQL(), group='toto', dbname="user_profile")
m <- dbGetQuery(con, "SELECT DISTINCT user_id FROM demographics WHERE gender='0'")
dbDisconnect(con)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment