select *from tb1left join tb2on tb1.str != nulland substring(str, 0, 2) = tb2.str.
on tb1.str is not nulland tb2.str is not nulland substring(tb1.str, 0, 2) = tb2.str.