【发布时间】:2014-08-02 12:26:12
【问题描述】:
在我的查询中,我可以给子查询一些默认值吗?
我的一个子查询可能没有任何值。在这种情况下,它返回 null 作为整个结果。如果子查询之一为空,我可以分配一些默认值吗?
select
t1 . *, t2.speed, t3.Accelerometerx
from
(SELECT
*
FROM
`table1`
) as t1,
(SELECT
*
FROM
table1)
as t2
【问题讨论】: