You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
有A、B两张表,我想实现 select A.,B. from A left join A.id = B.id where A.state=1 and B.state=1 ,请问如何实现啊!
Current Behavior/问题描述
有A、B两张表,我想实现
select A.*,B.* from A
left join A on A.id = B.id
where A.state=1 and B.state=1 ,
请问如何实现啊!
现在使用left join 在左表上加查询条件,条件一直在子表里面
select A.*,C.* from A
left join (select B.* from B where B.state=1) as C on A.id = C.id
where A.state=1
这样次查询条件,无法排除B表的条件
Expected Behavior/期望结果
期望使用jion < 表查询时能实现如下Sql
select A.*,B.* from A
left join A on A.id = B.id
where A.state=1 and B.state=1
Any additional comments?/其它补充说明?
No response
The text was updated successfully, but these errors were encountered:
APIJSON Version/APIJSON 版本号
6.2.0
Database Type & Version/数据库类型及版本号
MySql 5.7
Environment/环境信息
APIAuto Screenshots/APIAuto 请求与结果完整截屏
有A、B两张表,我想实现 select A.,B. from A left join A.id = B.id where A.state=1 and B.state=1 ,请问如何实现啊!
Current Behavior/问题描述
Expected Behavior/期望结果
Any additional comments?/其它补充说明?
No response
The text was updated successfully, but these errors were encountered: