2
有沒有辦法在INTO語句中執行CASE?CASE WHEN ... INTO - 存儲過程
Create or replace procedure example
AS
Variable1 varchar;
Variable2 varchar;
BEGIN
Select (CASE WHEN number = 1 THEN
This_thing INTO Variable1
ELSE
That_thing INTO Variable2) The_Other
FROM table;
END;
謝謝,我會嘗試。 – OneSneakyMofo 2010-12-03 06:20:15
兩成條款不一個有效的查詢作出 – 2010-12-03 06:20:23