I have an other computer with an older version of SQL-Developer and there the result is:
select 'A \n B' as t from dual; T ------ A B
The second result I get with SQL-Plus or with SQL-Developer, when I run this query as a single statment and not as a script. Is this behaviour a bug or a feature of the new version of SQL-Developer? Is it possible to switch off this interpretation of \n as "new line" in the script result window of SQL-Developer?
T ------ A \n B
select 'A \n B' as t from dual;respects the logical newline in Run Script, then
select 'A \ \n B' as t from dual; --ignore the extra space between the backslasheswould do what you wish, but it does not. In any event, SQL*Plus does no escaping in this context.