【发布时间】:2018-12-04 09:56:39
【问题描述】:
我有以下疑问:
查询 1:
select column1, column2 from table1 where column1 = 12345;
结果 1:
column1|column2
12345|Topics briefed:
|1) How to catch a fish
|without using a fishing rod
|2) How to cook a fish
查询 2:
select column1, REPLACE(REPLACE(column2, chr(10), ''), chr(13), '') as col2 from table1 where column1 = 12345;
结果 2:
column1|col2
12345|Topics briefed: 1) How to catch a fish
|without using a fishing rod 2) How to cook a fish
结果 2 不是我想要的,我希望所有内容都排成一行。我怎样才能达到以下结果:
column1|col2
12345|Topics briefed: 1) How to catch a fish without using a fishing rod 2) How to cook a fish
提前致谢!
【问题讨论】:
-
也许你会发现
DUMP(substr(column2, 1, 4000))
标签: sql oracle oracle-sqldeveloper line-breaks clob