问一个简单SQL查询语句如何写,在线等

2024-12-29 18:30:27
推荐回答(2个)
回答1:

SELECT a.*,b.G FROM A a,B b WHERE a.ID=b.ID AND a.A=2 AND b.ID=1

回答2:

select a.*,b.G from A a
inner join B b on a.ID=b.Id
where a.ID=1 and a.A=2