SQL问题: select a,b from table1 union select a,'' as b from table2;

b为时间格式,tabel2无此栏位,虚拟的栏位格式不一样,如何用SQL实现这样的查询?这个问题就是如何用SQL虚拟一个时间格式的列
网友 1

最佳答案

回答者:网友
select a,b from table1 union select a, NUL as b from table2;

我来回答