If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I am trying to insert a line-break in a string data that I have in varchar column but it is not working. My database is on db2 9.7 on AIX. I tried CHR(10), CHR(13) and the combination of both. I also tried CHAR instead of CHR that works neither. Could you take a look at the update statement and let me know where I am going wrong
Below is my update statement
update db2inst1.risk_tbl set risk =
'ACK-1|01 12|P ' || CHR(10) ||
'PNW-7|09 08|P' || CHR(10) ||
'PNWPR-8|09 08|P' || CHR(10) ||
'HW 00 24|09 08|E'
where id='2010';
Really chr(10) should be the one but why is it not working?
I have tried the combination of both, the update command runs successfully every-time but when the application team tries to run the cycle it fails. The application reads the next line character based upon which I can say that the rest of the data is not going to the next line.
Also when I run the select in data studio it does not show me newline character, which it does for all other data.