Snippets

Karol Preiskorn String to CLOB

Created by Karol Preiskorn
declare
   c1 clob := to_clob('abc');
   c2 clob;
 begin
      case c1
          when to_clob('abc') then dbms_output.put_line('abc');
          when to_clob('def') then dbms_output.put_line('def');
      end case;

      c2 := case c1
        when to_clob('abc') then 'abc'
         when to_clob('def') then 'def'
     end;
      dbms_output.put_line(c2);
end;

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.