2013-12-17 19 views
0

發現另一個問題。該腳本運行,但返回null回車時返回空字符[%]和空格

我使用下面的方法來轉動(報價是由於語句包含在exec語句)

max(case when Name = ''[COutputData_2_Best class match]'' then value end) COutputData_2_Best_class_match, 
max(case when Name = ''[COutputData_2_Magnesium Stearate [%]]]'' then value end) COutputData_2_Magnesium_Stearate_percentage 

結果兩個列是空?

回答

0

只需使用以下

max(case when Name = ''COutputData_2_Best class match'' then value end) COutputData_2_Best_class_match, 
max(case when Name = ''COutputData_2_Magnesium Stearate [%]'' then value end) COutputData_2_Magnesium_Stearate_percentage