A表中有insertuser,insertcompany这两个字段,其中insertcompany与B表的主键对应。
现在要进行查询 ,当inseruser>0时不连接B表,当insertuser<=0时通过insertcompany链接这2个表。
请问这样的sql如何写呢?一句话哟,不要分开写的