2017-09-25 4 views

답변

0

당신은 당신은이 가입 사용할 수 있습니다 where exists

select remark from tableB b where exists (select 1 from tableA a where a.name= [give_name] and a.id=b.id); 

또는 in

select remark from tableB b where b.id in (select id from tableA where name = [give_name]); 
0

을 사용할 수 있습니다

SELECT remark FROM tableB b 
JOIN tableA a ON a.ID = b.ID 
WHERE a.name = ? 
관련 문제