关键字:FULL JOIN 只要其中某个表存在匹配,FULL JOIN 关键字就会返回行. select a.createtime, ISNULL(lp, 0) lp , ISNULL(hp, 0) hp from ( select convert(nvarchar(10),cCreateTime,23) as createtime,count(iTotalAmount) as lp from vat_inv_standard where iCharacter = 0 and iStatus =