- null code 填充字段默认值
select * from (
select * from a
union all
select id, name, null code from b)
where id=1
这篇博客详细解释了如何通过SQL查询将表A和表B合并,特别关注了当id为1时如何处理表B中nullcode字段的默认值问题。
select * from (
select * from a
union all
select id, name, null code from b)
where id=1
1299

被折叠的 条评论
为什么被折叠?