2009-10-13 57 views

回答

3

的替代方法我nStr()表示SQL更符合问题。恕我直言。

select * from [table] where [column] like '%'||chr(10)||'%' 
3

,你可以查找CHR(10)字符(换行字符):

select * from [table] where instr(column, chr(10)) > 0 
0

SELECT * FROM tableNameHere其中INSTR(colNameHere,CHR(10))> 0

-1

或者:

SELECT * FROM [table] WHERE column LIKE "%\n%" 

\ n为换行,\ r是回车...

+0

@thomasnash - 这并不在甲骨文工作 – dpbradley 2009-10-13 14:46:27

1

如果您正在使用Oracle 10g中向上的工作,你可以使用

select * from [table] where regexp_like([column], '\n')