如何在一个语句中显示所有内容

时间:2019-02-03 14:32:25

标签: mysql

显示所有具有以下位置的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' 

当前显示整理水平高于5的结果。

1 个答案:

答案 0 :(得分:0)

您应在()之间加上或条件

select BinLocation, ReorderLevel 
from [Warehouse].[StockItemHoldings] 
where (BinLocation like '%J%' or BinLocation like '%K%' or BinLocation like '%L%' ) 
and ReorderLevel <= '5'