0
我在命令提示符尝试安装和测试红宝石时得到如何摆脱语法错误,意外的keyword_end,期待输入结束?
syntax error, unexpected keyword_end, expecting end-of-input
。
require 'mysql2'
client = Mysql2::Client.new(host: 'localhost', username: 'root', password: 'password1')
sql = 'select now() as timestamp'
result = client.query(sql)
puts row['time stamp']
end