2017-11-30 2 views
0

私は混乱しています。Oracle Sql論理演算子

私は

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

を書くのであればouptutに、我々はあなたがこれをしたい6または5

+0

あなたがについて混乱どのようなものです: )? – SmartDumb

+0

"6時から5時で始まる発送品IDを得ることができます"という質問はあなたが求めていることですか? –

+0

はい、「OR」ステートメントのため、出力には6または5の出荷IDが含まれます。 –

答えて

0

で始まる出荷IDを取得します:

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