tA与tB是1对多的关系,如何查询与tB有关联的tA记录

tA与tB是1对多的关系,如何查询与tB有关联的tA记录
---------------------------------------------------------------

SELECT DISTINCT tA.* FROM tA,tB WHERE tA.id=tB.id

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus