i can't insert column value greater than 4000 characters at
one instance even i am using CLOB datatype . how to insert
efficiently more than 4000 characters ? And please let me
know how to impose inline and out-of line constraints on
oracle column???

Thanks in Advance...
Prakash

Answer Posted / prakashdasari

we can solve this problem in two ways as of my knowledge.

1)Write that total information (>4000) in a file and upload this file to CLOB data type.

2)Another way is we need to split the string to <=4000 characters substrings and each one need to be append by using to_clob() function available in oracle.

for ex. to_clob('4000characters sub string') | to_clob('4000characters sub string') | to_clob('4000characters sub string') |....... so on.


i used second one for my requirement because i dont want to disturb my well developed product code.Just i added as a extra function.

Than Q...

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a private synonym?

1077


Explain index?

735


What are the different types of synonyms?

586


What is parameterized cursor in oracle?

571


What is connection pooling in oracle?

544






What is index in Oracle?

584


What is a database table in oracle?

566


What operating systems are supported by oracle database 10g xe?

574


How will you identify oracle database software release?

521


What is partitioned table in Oracle?

624


What is oracle used for?

530


Explain joins in oracle?

557


What is tns service name?

611


15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.

1697


What is meant by a deadlock situation?

570