How wo force LEFT OUTER JOIN return NULL or empty?

前端 未结 0 557
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 05:37
SELECT table1.id, table2.name
FROM table1
LEFT JOIN table2
ON table1.id = table2.id;

so if table1.id = NULL I want to return NULL or empty string fr

相关标签:
回答
  • 消灭零回复
提交回复
热议问题