Rails: Using greater than/less than with a where statement

前端 未结 0 1558
伪装坚强ぢ
伪装坚强ぢ 2020-12-23 02:49

I\'m trying to find all Users with an id greater than 200, but I\'m having some trouble with the specific syntax.

User.where(:id > 200) 

相关标签:
回答
  • 消灭零回复
提交回复
热议问题