Oracle Sql逻辑运算符

时间:2017-11-30 07:58:53

标签: sql oracle sql-like

我有一种困惑。

如果我写

where shipment_ID not like '6%' and shipment_id not like '5%' or shipment_id not like '3%'

因此,在ouptut中,我们将从6或5开始发货装运

1 个答案:

答案 0 :(得分:0)

你想这样做:

where shipment_ID not like '6%' and (shipment_id not like '5%' or shipment_id not like '3%')