开发者

query to obtain the missing content between two tables

开发者 https://www.devze.com 2023-02-09 19:40 出处:网络
开发者_JAVA技巧I have two tables table A and Table B , i have used primary key of the table A as a Referencein table B , i need help to write a query to obtain the content that is present only in tabl
开发者_JAVA技巧

I have two tables table A and Table B , i have used primary key of the table A as a Reference in table B , i need help to write a query to obtain the content that is present only in table A but missing in table b.

thanks in advance


SELECT * FROM tbl_a
LEFT JOIN tbl_b ON tbl_b.a_id = tbl_a.id
WHERE tbl_b.id IS NULL
0

精彩评论

暂无评论...
验证码 换一张
取 消