Question

I'm running the following sql query in my Oracle Apex application:

SELECT column1 || chr(13) || chr(10) || column2 FROM table;

I want the second column to be displayed on a new line. This doesn't seems to be working in my Apex application. However it's working on SQL*PLUS.

Any ideas what could be the problem here and how can I fix it?

Was it helpful?

Solution

What you can do is change the display type of the the column to "Standard Report Column" and change your query to

SELECT column 1 || '<br/>' || column2 FROM table;

However, you'll have to be sure that your data won't contain valid HTML or characters, because things like &gt; would convert to >

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top