Oracle TO_CLOB Function


/ Published in: SQL
Save to your folder(s)

A few examples of the TO_CLOB function.


Copy this code and paste it in your HTML
  1. --TO_CLOB
  2.  
  3. --Example 1
  4. SELECT first_name, TO_CLOB(first_name) AS clob_value
  5. FROM student
  6. WHERE student_id = 1;
  7.  
  8. --Example 2
  9. CREATE TABLE datatype_test (
  10. nclob_column NCLOB
  11. );
  12.  
  13. INSERT INTO datatype_test (nclob_column)
  14. VALUES ('This is ä tëst');
  15.  
  16. SELECT nclob_column, TO_CLOB(nclob_column) AS clobvalue
  17. FROM datatype_test;

URL: http://www.databasestar.com/oracle-to_clob/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.