Wildcard in the IN clause

后端 未结 2 1147
野趣味
野趣味 2021-01-18 21:16

SQL: I want use the wildcard \"%\" in the IN clause but I\'m not getting the results I expect. My query is like this

SELECT DISTINCT ID,
              FROM I         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-18 21:43

    I guess what you're looking for is not an IN Condition, but an LIKE Condition. What about searching for

    SELECT DISTINCT ID, FROM INST WHERE TYPE like 'IP_%_International'
    

提交回复
热议问题