查看sql中相关部分
left join balancesource b
using (orgcode, datadate,accountorgcode)
where b.id is null
在SQL语句中,USING子句用于指定两个表之间进行自然连接时使用的共同列。在USING子句的列部分,不能使用限定词(如表名或表别名等)来修饰列名。
left join balancesource b
on t.orgcode=b.orgcode
and t.datadate=b.datadate
and t.accountorgcode=b.accountorgcode
and b.id is null
文章
阅读量
获赞