2017-09-25 11 views

答えて

0

あなたはJOINを使用することができます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 = ? 
関連する問題