You need left join
with like
as follows:
Select b.searchstring, count(a.postid) as ocrnc
From tableb b
Left Join tablea a on concat(' ', a.postcontent, ' ') like concat('% ', b.searchstring, ' %')
Group by b.searchstring
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…