안녕하세요 급하게 질문하나 드려봅니다
=== email ====
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
select * from table where email not in (select * from table where email like '%aaa.com%' )
위에 쿼리처럼 @aaa.com을 뺀 나머지 주소 결과를 검색하고자 합니다 하다안되어서
도움좀 부탁드립니다 참고로 mysql 버젼 3.X입니다
감사합니다
=== email ====
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
select * from table where email not in (select * from table where email like '%aaa.com%' )
위에 쿼리처럼 @aaa.com을 뺀 나머지 주소 결과를 검색하고자 합니다 하다안되어서
도움좀 부탁드립니다 참고로 mysql 버젼 3.X입니다
감사합니다
댓글을 작성하시려면 로그인이 필요합니다.
댓글 4개
보통 다른 연산자들의 경우, NOT 필드명 연산자 비교값, 식으로 맨앞에 써야 하기에
저는 NOT LIKE 도 위처럼 사용합니다. ^^
mysql 의 문법중 헷갈리게 정의된 것중 하나죠..