Convert string to clob : CLOB « Large Objects « Oracle PL/SQL Tutorial






SQL>
SQL> declare
  2
  3    c1 clob := to_clob('abc');
  4    c2 clob;
  5
  6  begin
  7      case c1
  8           when to_clob('abc') then dbms_output.put_line('abc');
  9           when to_clob('def') then dbms_output.put_line('def');
 10      end case;
 11
 12      c2 := case c1
 13         when to_clob('abc') then 'abc'
 14         when to_clob('def') then 'def'
 15      end;
 16
 17      dbms_output.put_line(c2);
 18
 19  end;
 20  /
abc
abc

PL/SQL procedure successfully completed.

SQL>








34.4.CLOB
34.4.1.Creating Tables Containing CLOB Objects
34.4.2.Initialize CLOB column
34.4.3.Read clob data to varchar2 type variable
34.4.4.Read clob type data, DBMS_LOB.READ
34.4.5.Adding Content to a CLOB
34.4.6.Loading data to the CLOB by using BFILE
34.4.7.Performing basic string operations on CLOBs
34.4.8.Reading and Writing to a CLOB
34.4.9.Obtain Clob data pointer
34.4.10.close Clob data pointer
34.4.11.Open the CLOB
34.4.12.Insert into clob column
34.4.13.Update clob data
34.4.14.Compare date value after to_char() and trim()
34.4.15.Convert string to clob
34.4.16.Copy clob data