select a.*
from user a
left join school b on a.id=c.userId and b.del=0
where a.id=#{参数}(正常)
select a*
from user a
left join school b on a.id=b.userId
where a.id=#{参数} and b.del=0(错误,相当于inner join)
select a.*
from user a
left join school b on a.id=c.userId and b.del=0
where a.id=#{参数}(正常)
select a*
from user a
left join school b on a.id=b.userId
where a.id=#{参数} and b.del=0(错误,相当于inner join)