Query's in Ruby
In this post we discuss about how to retrieve data from database like mysql or sql ...
Select
Model.where("column = ? , value)
Model.where("column = ? or other_column = ?", value, other_value)
Model.where("column = ? and other_column = ?", value, other_value)
No comments:
Post a Comment