清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
require 'mysql' m = Mysql.new("localhost","name","password","dbname") r = m.query("SELECT * FROM people ORDER BY name") r.each_hash do |f| print "#{f['name']} - #{f['email']}" end
2015/01/04 32512
清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
require 'mysql' m = Mysql.new("localhost","name","password","dbname") r = m.query("SELECT * FROM people ORDER BY name") r.each_hash do |f| print "#{f['name']} - #{f['email']}" end