mysql 如何查询A表uid等于表B里的uid的数据

2025-03-24 04:34:31
推荐回答(3个)
回答1:

select a.*,b,* from A a,B,b where a.uid=b.uid and b.uid=4;

回答2:

select A.* from A left join B on A.uid = B.uid where A.uid = 4

回答3:

select a.*,b.* from a,b where a.uid=b.uid and b.uid = 4