开发者

Calling Stored procedure through Rails?

开发者 https://www.devze.com 2023-02-06 03:24 出处:网络
How can i acces开发者_Go百科s Stored procedure created in Mysql through rails code? I am currently using following versions for rails application:-

How can i acces开发者_Go百科s Stored procedure created in Mysql through rails code? I am currently using following versions for rails application:-

Rails 2.1.0

Ruby Enterprise Edition 2010.01

Thanks....


try this below: ActiveRecord::Base.connection.execute("call sp_name(param1,param2,.....)")

0

精彩评论

暂无评论...
验证码 换一张
取 消