Home » SQL & PL/SQL » SQL & PL/SQL » REG:CONVERTING A CLOB DATATYPE to VARCHAR datatype (Oracle)
icon4.gif  REG:CONVERTING A CLOB DATATYPE to VARCHAR datatype [message #563697] Thu, 16 August 2012 09:14 Go to next message
chavva.kiru@gmail.com
Messages: 3
Registered: April 2012
Location: hyderabad
Junior Member
Dear Team,

I want to convert a clob datatype to varchar data type.
I have a clob data type in the below format.
-----------------------------------------------------------------------------------------
<HTML><HEAD><TITLE>Tata Communications Limited</TITLE><BODY leftMargin=20 topMargin=10 rightMargin=20 marginheight=10 marginwidth=10><Table border="0" cellpadding="0" cellspacing="0"
-----------------------------------------------------

I want to insert all the values into varchar datatype.please kindly provide the sample code how to convert.
Re: REG:CONVERTING A CLOB DATATYPE to VARCHAR datatype [message #563698 is a reply to message #563697] Thu, 16 August 2012 09:20 Go to previous message
Michel Cadot
Messages: 59279
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
From your previous topics:

BlackSwan wrote on Wed, 11 April 2012 16:43
Please read and follow the forum guidelines, to enable us to help you:

http://www.orafaq.com/forum/t/88153/0/


BlackSwan wrote on Wed, 11 April 2012 20:29
...
READ & FOLLOW the Posting Guidelines! http://www.orafaq.com/forum/t/88153/0/


With any SQL question, Post a working Test case: create table and insert statements along with the result you want with these data then we will be able work with your table and data. Explain with words and sentences the rules that lead to this result.

Before, Please read OraFAQ Forum Guide and How to use [code] tags and make your code easier to read.
Make sure that lines of code do not exceed 80 characters when you format.
Indent the code, use code tags and align the columns in result.
Use the "Preview Message" button to verify.
Also always post your Oracle version, with 4 decimals.

Regards
Michel
Previous Topic: function for checking if it is a four digit number
Next Topic: A Join with more than on table
Goto Forum:
  


Current Time: Wed Oct 01 00:20:21 CDT 2014

Total time taken to generate the page: 0.29632 seconds