📜  oracle 删除换行符 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:53.737000             🧑  作者: Mango

代码示例1
-- Removes line breaks
DECLARE
    teststring VARCHAR2(32767) := ' This is the value

that I chose';
BEGIN
    DBMS_OUTPUT.PUT_LINE(teststring);
    DBMS_OUTPUT.PUT_LINE(replace(replace(teststring, chr(13), ''), chr(10), ' '));
END;