ruby
[interfmfun]> gem install pg Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /home/tgoto/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb checking for pg_config…
val1='0002' img=File.binread('images/180_57.png') val2=img.unpack('H*') connection.query("insert into blob01 values ('#{val1}', '#{val2}')") connection.close
require 'mysql' connection = Mysql::new("host", "userid", "password", "schema") connection.charset="utf8" val1 = '後藤' val2 = 26 val3 = '開発本部' connection.query("insert into staff values ('#{val1}', #{val2}, '#{val3}')") connection.que…
require 'mysql' connection = Mysql::new("host", "userid", "password", "schema") connection.charset="utf8" sql = <
ruby-mysqlを利用する gem install ruby-mysql