result.each{ |r| puts r['name'] }
对于返回的单行数据.必须有一种更简单的方法来获取我想要的MysqL字段而不必使用每个块?
Mysql2::Result
Enumerable
first
puts result.first['name']