oracle 编写一个查询,检索名称中包含字符“wo”和字符“I”或“i”的供应商,SQL

mrphzbgm  于 2023-02-11  发布在  Oracle
关注(0)|答案(1)|浏览(101)

编写一个查询,检索名称中包含字符“wo”和字符“I”或“i”的供应商。SQL

SELECT * FROM TABLE
WHERE SUPPLIER_NAME LIKE '%WO%' 
AND SUPPLIER_NAME LIKE '%L%' OR '%I%'
kyxcudwk

kyxcudwk1#

试试这个

SELECT * FROM TABLE 
WHERE SUPPLIER_NAME LIKE '%WO%' 
      AND (SUPPLIER_NAME LIKE '%L%' OR SUPPLIER_NAME LIKE '%I%')

相关问题