안녕하세요. 고수님들께 조언을 구하고자 글을 남깁니다.
아래내용은 현재 구성된 쿼리문인데요.
select
A.idx as idx,
A.id as id,
A.passwd,
A.name,
A.comtype,
A.comnametype,
A.hphone,
A.tphone,
A.email,
A.level,
A.visit,
A.wdate,
A.com_end,
B.*,
(
select
com_ing2
from
feeHistory
where
memid=A.id
order by com_ing2 desc limit 1
) as com_ing2
from
member A,
company B
where
A.id = B.id and
A.division = 'k'
위 쿼리문에서 별도의 memo라는 테이블의 내용을 검색을 하고싶은데요.
어떻게 처리를 하는게 좋은지 조언을 구하고자합니다.
예를들어 메모테이블내에 aaa라는 내용을 검색 하게되면 리스트가 나오게 하고싶은데요.
조언바랍니다.