Hi,
I am trying to run the below querry in spufi :
SELECT 'UPDATE table1 SET col1 = "1" WHERE ACCT_NUM = "'
||ACCT_NUM||'"'||X'0D'||';'||X'0D'||'COMMIT ;'
FROM table2 WHERE
ACCT_NUM BETWEEN '0582111083238' AND '0650626000939'
to get the output result as :
UPDATE table1 SET col1 = "1" WHERE ACCT_NUM = "0582111083238"
;
COMMIT ;
UPDATE table1 SET col1 = "1" WHERE ACCT_NUM = "0585111082775"
;
COMMIT ;
But instead of displaying the semi-colon and 'Commit' statement in next line (Carriage return - X'0D') I am getting the output result as :
UPDATE table1 SET col1 = "1" WHERE ACCT_NUM = "0582111083238".;.COMMIT;
UPDATE table1 SET col1= "1" WHERE ACCT_NUM = "0585111082775".;.COMMIT;
Can anyone suggest me how to fix this so that I get the desired output ?