Skip to content

Instantly share code, notes, and snippets.

Created January 18, 2015 11:01
Show Gist options
  • Save anonymous/b7be7ea76ba646168ed5 to your computer and use it in GitHub Desktop.
Save anonymous/b7be7ea76ba646168ed5 to your computer and use it in GitHub Desktop.
irb(main):002:0> require 'sequel'
=> true
irb(main):003:0> require 'mysql2'
=> true
irb(main):004:0> DB = Mysql2::Client.new(:host => "localhost", :username => "patinhas", :password => "testest")
=> #<Mysql2::Client:0x00000000e57d88>
irb(main):005:0>
I have a table called "omg" and i want to select everything from it, i tried...
DB.query ("SELECT * FROM 'omg',")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment