Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "The Shining","9","7808","4156"
- "Dune","15","4513","1866"
- "2001: A Space Odyssey","15","4267","2001"
- "The Cat in the Hat","2","1608","1809"
- "Bartholomew and the Oobleck","2","1590","1809"
- "4156","The Shining","9","7808"
- "1866","Dune","15","4513"
- "2001","2001: A Space Odyssey","15","4267"
- "1809","The Cat in the Hat","2","1608"
- "1809","Bartholomew and the Oobleck","2","1590"
- "9","The Shining","7808","4156"
- "15","Dune","4513","1866"
- "15","2001: A Space Odyssey","4267","2001"
- "2","The Cat in the Hat","1608","1809"
- "2","Bartholomew and the Oobleck","1590","1809"
- confrom = PG::Connection.new(:user => <myuser>, :password => <mypw>, :port => 5432, :host => <myhost>, :dbname => 'booktown')
- results = confrom.exec("select * from books")
- results.each do |row|
- row.each_value do |x|
- puts x
- end
- end
- results.each do |row|
- #...
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement