<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>
<div>Hi Team,</div><div><br></div><div>I have tried to insert in clob data type more than 32k byte data but getting error:-</div><div><br></div><div>Statement
Execute Failed: [IBM][CLI Driver][DB2/LINUXX8664] SQL0102N The string
constant beginning with "\'<p>Hi good day team:<br /> We had
been requested to Add Anniel to all" is too long. SQLSTATE=54002
SQLCODE=-102</div><div><br></div><div>could any one please help me is there any way i can achieve it?</div>
</div><div><br></div><div>
<div>Please find my DDL statement:-</div><div><br></div><div>CREATE TABLE "DB2IDEV "."CHANGE" (<br> "TICKET_ID" INTEGER NOT NULL , <br> "SHORTDESC" VARCHAR(5000 OCTETS) NOT NULL , <br> "LONGDESC" CLOB(2147483647 OCTETS) LOGGED NOT COMPACT , <br> "RELEASENUM" VARCHAR(12 OCTETS) WITH DEFAULT NULL , <br> "ISSOFTDELETED" INTEGER NOT NULL WITH DEFAULT 0 , <br> "CREATETIMESTAMP" TIMESTAMP NOT NULL WITH DEFAULT CURRENT TIMESTAMP , <br> "LASTUPDATETIMESTAMP" TIMESTAMP WITH DEFAULT NULL ) <br> IN "TABLESPACE" <br> ORGANIZE BY ROW ;</div><div><br></div><div> conn = db.connect("DATABASE=%s;HOSTNAME=%s;PORT=60001;PROTOCOL=TCPIP;UID=%s;PWD=%s;"%(DB2_DATABASE,DB2_HOSTNAME,DB2_UID,DB2_PWD), "", "")<br>cursor = conn.cursor()<br></div><div><br></div><div>sql="INSERT INTO Change (Ticket_ID,shortDesc,longDesc,releaseNum,isSoftDeleted,createTimeStamp,lastUpdateTimeStamp)
VALUES ('296129','High Cisco Adaptive Security Appliance Remote Code
Execution and Denial of Service Vulnerabilit','<Some long data around
50KB>',NULL,'0','2018-02-07 02:11:50',NULL)"</div>
</div><div><br></div><div>cursor.execute(sql)<br>conn.commit()<br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px"><span style="font-size:12.8px">Thanks & Regards</span></div><div style="font-size:12.8px"><b><br>Aman Agrawal</b><font face="Arial, sans-serif" color="#333333"><span style="font-size:12.8px"></span></font><br><div style="font-size:12.8px"><br></div></div></div></div></div></div></div></div></div></div></div></div></div>