How to search new line char in oracle table?

后端 未结 4 1617
走了就别回头了
走了就别回头了 2021-01-08 00:26

I have an issue with a file that\'s created from data (in format of bytes) returned from the database.
the problem is that there is a few newlines in the file.
i wou

4条回答
  •  天涯浪人
    2021-01-08 01:08

    You can write something like:

    SELECT id
      FROM table_name
     WHERE field_name LIKE '%'||CHR(10)||'%'
    ;
    

    (|| is the concatenation operator; CHR(10) is the tenth ASCII character, i.e. a newline.)

提交回复
热议问题