你能为这个Sql查询提供精确的hql查询吗?
SELECT * FROM `ims_product`WHERE
quantity <= reorder_quantity AND
reorder_quantity IS NOT NULL AND
NOT(reorder_quantity=0);
答案 0 :(得分:1)
尝试使用。
FROM `ims_product` WHERE `quantity` <= `reorder_quantity` AND `reorder_quantity` != 0;