Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
または、mysql2 gemの1つの関数呼び出しで複数のクエリを実行する別の方法はありますか?
新しいクライアントをセットアップするときに、フラグに追加できます
client = Mysql2::Client.new(:host => 'localhost', :database => 'my_db', :username => "root", :password => "", :flags => Mysql2::Client::MULTI_STATEMENTS)