0
嗨我想創建一個新的表,他們基於相同的變量。下面是我試圖讓它工作,我也嘗試了其他一些瘦。插入語句使用多個where子句
我必須創建一個x和x1並排的表格。當我嘗試單獨插入時,我得到一張看起來像
x | null
x | null
null | x1
null | x1
我想要一張表,結果爲
x | x1
x | X1
insert into inter
(
x,
x1
)
select
unrolled.`Sum of New Lds` from unrolled where pastdate(`Week end`)='2014-06-08',
(select unrolled.`Sum of New Lds` from unrolled where `Week end`='2014-06-08')
嘿,假設x1和x是變量,這是否仍然有效? – seetler 2014-10-06 16:14:48
是的。它的價值從何而來並不重要。 – 2014-10-07 15:03:44