I have this piece of code I programmed months ago:
@shipments = Shipment.joins(:invoice).where(:customer_id => @customer.id).where("customer_open_balance <> 0").order("file_number ASC")
I forgot what <>
means. I searched online and looked through my Pickaxe book and can't find the answer.
<>
是SQL ,表示“不等于”,又名!=
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.