가능한 중복 :
우리가 같은이
Is there a combination of “LIKE” and “IN” in SQL?같은 쿼리에서 사용하는 방법을select inticap(last_name),length(last_name) from employees where last_name in(like '%J%',like '%A%',like '%M%'); OR select inticap(last_name),length(last_name) from employees where last_name like in('%J%', '%A%',l'%M%');
같은 동일한 쿼리의 조건에서 사용할 수있는
나는 그것을 알고있다 실 거예요. 여기에 성 (姓)의 첫 글자와 성의 길이를 표시하고 알파벳 'A', 'J'및 'M'으로 이름을 표시하고 싶습니다. 언급 한 바와 같이 당신이 선호하는 것처럼, 당신이 직접 LIKE
및 IN
을 결합 할 수 없습니다 나에게
중복 된 http://stackoverflow.com/questions/4335359/is-it-possible-to-use-like-and-in-for-a-where-statment 및 http://stackoverflow.com/questions/10747996/in-sql-server-how-do-i-search-for-i-where-i-need-to-u/10748091 # 10748091 및 기타 여러 검색 –
아니요 ' t 작업, '% J %'와 (과) 같은 '% A %'와 같은 쿼리에서 OR을 사용할 수 있습니다. – shobhit
이것은 불가능합니다. –