标签: ruby-on-rails ruby
我有几个月前编写的这段代码:
@shipments = Shipment.joins(:invoice).where(:customer_id => @customer.id).where("customer_open_balance <> 0").order("file_number ASC")
我忘记了<>的含义。我在网上搜索并浏览了我的Pickaxe书,找不到答案。
<>
答案 0 :(得分:7)
<>是SQL,意思是“不等于”,a.k.a。!=
!=