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 oracle data type?

650


How to set up autotrace for a user account?

675


How do we get field details of a table?

620


How to get a list of all user accounts in the database?

710


Explain constraining triggers.

701






How many categories of data types?

655


What is execute immediate in oracle?

624


Explain the use of inctype option in exp command.

672


Explain what are synonyms used for?

695


Explain the importance of .pll extension in oracle?

631


How to select an oracle system id (sid)?

668


State the difference between a primary key and foreign key?

596


How to turn on or off recycle bin for the session?

687


What happens if the imported table already exists?

632


How to name query output columns in oracle?

794