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

How to use "if" statements on multiple conditions?

931


Can sub procedure/function be called recursively?

752


What do you mean by merge in oracle and how can we merge two tables?

800


What is an oracle database table?

773


Explain an exception?

732


What is index in Oracle?

793


What is define in oracle?

804


How to update values in a table in oracle?

763


What is meant by joins?

831


What do you mean by a tablespace?

776


What is ADDM Advisor in Oracle?

872


Give the various rollback segment states.

807


How to connect asp pages to oracle servers?

781


How to use subqueries with the exists operator in oracle?

783


Explain what are the characteristics of data files?

820