显示所有 J、K 和 L 库存仓位 重新排序为 5 或更少。
select BinLocation, ReorderLevel
from [Warehouse].[StockItemHoldings]
where BinLocation like '%J%' or BinLocation like '%K%' or BinLocation like '%L%'
and ReorderLevel <= '5'
它当前显示的结果是 reoder 级别高于 5。
最佳答案
你应该在 () 之间包含 or 条件
select BinLocation, ReorderLevel
from [Warehouse].[StockItemHoldings]
where (BinLocation like '%J%' or BinLocation like '%K%' or BinLocation like '%L%' )
and ReorderLevel <= '5'
关于mysql - 如何在一个语句中显示所有内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54503873/