Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cast object to CLOB

user67677Dec 6 2010 — edited Dec 6 2010
For mockup purposes I have a logging table and a testdata table.

I have a user defined type, lets say coordinate which has two points.
I want to save this user defned type in a table as a CLOB. Is this possible? The type itself cannot be changed.

The other way around works. I use EXECUTE IMMEDIATE to accomplish this. Now only needed is from TYPE => CLOB.

l_coordinate COORDINATE_T;
l_result CLOB;
BEGIN
SELECT result
INTO l_result
FROM mck_data
WHERE parameters = key
AND type = l_type;

EXECUTE IMMEDIATE 'SELECT ' || l_resultaat || ' FROM DUAL ' INTO l_als_locatie ;
return l_als_locatie;
..
This post has been answered by MichaelS on Dec 6 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 3 2011
Added on Dec 6 2010
4 comments
1,378 views