SELECT * FROM a1 inner join a2 on a1.RPTNO = a2.RPTNO a1.VEND_COAD = a2.VEND_COAD
要怎么将两张表两个条件join在一起
SELECT * FROM a1 inner join a2 on a1.RPTNO = a2.RPTNO and a1.VEND_COAD = a2.VEND_COAD
* 要用具体的字段来代替,不然会报错。同名字段前面要加上表名或表的别名,你的第二个条件缺少and连接