473,657 Members | 2,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to insert very large text into CLOB datafield?urgen t.....

40 New Member
I want explanation for CLOB datafield

1.I created clobtable with the query
create table clobexample(id number,text CLOB);

2.I tried to insert very large text by the following query

insert into clobexample(1,' here i added very large text');

3.the error is
SP2-0232: Input too long. Must be less than 241 characters

why i am unable to insert very large text in CLOB field.
Apr 10 '08 #1
7 3380
amitpatel66
2,367 Recognized Expert Top Contributor
Expand|Select|Wrap|Line Numbers
  1. SQL> create table clobexample(id number,text CLOB);
  2.  
  3. Table created.
  4.  
  5. SQL> insert into clobexample values(1,'here i added very large text')
  6. SQL> /
  7.  
  8. 1 row created.
  9.  
  10. SQL> select * from clobexample;
  11.  
  12.         ID
  13. ----------
  14. TEXT
  15. --------------------------------------------------------------------------------
  16.          1
  17. here i added very large text
  18.  
  19.  
  20. SQL> 
  21.  
Your insert statement is of incorrect syntax!!
Apr 11 '08 #2
debasisdas
8,127 Recognized Expert Expert
use this

Expand|Select|Wrap|Line Numbers
  1. create table clobexample(id number,text CLOB);
  2.  
  3. insert into clobexample values(1,'here i added very large text');
  4.  
Apr 11 '08 #3
shivapadma
40 New Member
use this

Expand|Select|Wrap|Line Numbers
  1. create table clobexample(id number,text CLOB);
  2.  
  3. insert into clobexample values(1,'here i added very large text');
  4.  


if i give below 241 characters insert query is accepting .But,if more than 241 charcters are inserted i am getting error

SP2-0232: Input too long. Must be less than 241 characters

Apr 11 '08 #4
debasisdas
8,127 Recognized Expert Expert
I have executed this successfully without any errors.
Expand|Select|Wrap|Line Numbers
  1. INSERT INTO clobexample VALUES(1,'here i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large text');
  2.  
What is the version oracle that you are using ?
Apr 11 '08 #5
shivapadma
40 New Member
I have executed this successfully without any errors.
Expand|Select|Wrap|Line Numbers
  1. INSERT INTO clobexample VALUES(1,'here i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large texthere i added very large text');
  2.  
What is the version oracle that you are using ?




the version i am using is oracle10g.
Apr 17 '08 #6
debasisdas
8,127 Recognized Expert Expert
the version i am using is oracle10g.
I have also executed on 10.2.0.1.0 and it is working fine for me without any error.
Apr 17 '08 #7
BMantri
7 New Member
Hello,

U have skipped the VALUES clause in the insert statement.

The correct sysntax is

insert into table_name(col1 , col2) values ( val1, val2);


Thanks,
BMantri
Apr 22 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
14416
by: rabbit | last post by:
Hi all, I want to know, how can i insert the xml data using createXML() with CLOB in the xmltype column? I store the xml data at first in the clob column und want to import these data in the xmltype column in another table. But i get always the error message: java.sql.SQLException: ORA-00600: internal error code, arguments: , , , , , , , ORA-06512: in "SYS.XMLTYPE", line 0
2
3609
by: Pablo | last post by:
I have observed a significant discrepancy between the amount of space used in a long tablespace when using import as compared to load. Can anyone explain the following? In an attempt to move data from one table/tablepace to another observed the following: Exported lobfile = 291 MB (average 60K / CLOB object)
1
4900
by: Dark | last post by:
Im trying to insert a clob into the database and I get the following error. DBD::DB2::st execute failed: SQL0804N The application program input parameters for the current request are not valid. Reason code "103". If a host variable or S QLVAR in the SQLDA is invalid then: host variable/SQLVAR number = "5", SQLTYPE = "393", SQLLEN = "33", host variable/SQLVAR type = "INPUT". SQLSTATE=07002
4
21704
by: Nina via DBMonster.com | last post by:
Hi, I'm trying to insert a clob / blob from the local file system into a basic table. This can be quite easily accomplished in Oracle but I have not found any wquivalent way on how to do this in DB2. I have the following table: create table docs( doc_id integer, docs clob(), constraint pk PRIMARY KEY (doc_id))
1
7846
by: gimme_this_gimme_that | last post by:
Is there a command line trick that inserta ascii text into a CLOB column? Thanks.
1
7874
by: annecarterfredi | last post by:
I need some help.... I have XML files residing on the database server harddisk. I want to load those files as CLOB into a table column. The table is defined like this: Table_0 ( ID INT FILE_DATA CLOB )
3
1542
by: settyv | last post by:
Hi, I need to generate PDF stream when i click on Linkbutton in datagrid ..At present i hardcoded the DMS Id and now it is working.But i need to pass DMS ID when click linkbutton.How can i do that? Here is the ASPX code: <asp:datagrid id="grdTentativeResults" Width="800" Runat="server"
0
2651
by: *Davide* | last post by:
Hello, This query (PHP+Oracle) works: global $user,$pass,$sid; $db_charset = 'UTF8'; $db = OCILogon($user, $pass, $sid, $db_charset); $clob = OCINewDescriptor($db, OCI_D_LOB); $txt_clob = $arguments;
0
4052
by: troydixon | last post by:
Hello, I am new at this, and have been trying to insert data into a table by using the footer of a gridview (which I dont like) or by using a detials view on the same page that is doing the following: 1) gets query string from url and filters records (works great) via a Details View 2) shows notes that have been added to the record shown in the details view using a grid view, and it filters the data by looking at the ID that is selected in...
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4302
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1953
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.