2009-10-13 61 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')