0
我在OBIEE下面的代碼:如何在Evaluate_Aggr中放置單引號?
EVALUATE_AGGR('LTRIM(RTRIM(SYS.STRAGG(DISTINCT %1|| '', ''), '', '') , '', '')' as varchar(2000),
EVALUATE('GetValue(%1,''SELECT MAX(I1.ITEM_NUMBER)INTO :strValue
FROM MV_BOM B1, MV_ITEM I1
WHERE BOM_PARENT_ITEM_NUMBER = XXXX AND
B1.BOM_CHILD_ITEM_SUBCLASS = "Stic" AND
B1.BOM_PARENT_ITEM_SUBCLASS = "Product" AND
B1.BOM_CHILD_ITEM_NUMBER=I1.ITEM_NUMBER AND
NOT I1.ITEM_NUMBER LIKE "4.YY%" AND
NOT I1.ITEM_NUMBER LIKE "4.WW%" AND
NOT I1.ITEM_NUMBER LIKE "DXXXT.%" AND
I1.ITEM_LATEST_FLAG="Latest Revision" '')' AS VARCHAR(2000), "Product value"))
爲此我得到一個語法錯誤:附近的GetValue(%1」的單引號 我試圖與報價玩,但仍無法正常工作的任何幫助?
你會得到哪個語法錯誤,以及你發佈的確切代碼? –
嗨Alex,Near –
sar04x