bhakti_thakkar
11-28-2007, 06:28 AM
hi all,
i m using oracle 9i. my development enviroment is using php, pear/DB. i m connecting the DB using ODBC.
the problem is i have a table with CLOB datatype:
Name Null? Type
----------------------------------------- -------- --------
NEWSLETTER_ID NOT NULL NUMBER
SUBJECT_VC VARCHAR2
MAILTYPE_VC VARCHAR2
CONTENT_TXT CLOB
SCHEDULE_DT VARCHAR2
SYSTEM_HOOK_VC VARCHAR2
NSTATUS_SI NUMBER
TEMPLATE_ID NUMBER
my sql insert statemt is quite huge:
INSERT INTO Newsletter_T (Newsletter_ID,Subject_VC,MailType_VC,Content_Txt,Schedule_DT,nStatus_SI,system_hook_VC,Template_ID) VALUES (1,'DIVIDEND TEMPLATE','html','
Dear Shareholder,
BOARD MEETING NOTICE
We wish to inform you that, the Meeting of the Board of Directors of our Company is scheduled to be held on Monday, January 01, 2007 to take on record, amongst other business, the unaudited financial results and Segment-Wise Financial Report for quarter and half year Monday, January 01, 2007
We also wish to inform you that at the said Meeting, the Board of Directors will consider payment of Interim Dividend for the financial year 2007
The Record for this Interim Dividend is Monday, January 01, 2007 and the date of payment is Monday, January 01, 2007
We request you to provide us with your ECS details before Monday, January 01, 2007 to enable us to remit dividend through ECS.
(please ignore if you have already given this details)
XXXXXXXXX
Company Secretary &
Vice President – Human Resources
','28-Nov-2007',0,'474d0a0840d9a','1');
/////////////////////////////////////////////////////////////////////////////////
with all the carrige returns and spaces
it throws me an error :
[nativecode=S1000 [Oracle][ODBC][Ora]ORA-01704: string literal too long]
what is the problem??? :confused:
can any one please help me??
Thanks in advance
i m using oracle 9i. my development enviroment is using php, pear/DB. i m connecting the DB using ODBC.
the problem is i have a table with CLOB datatype:
Name Null? Type
----------------------------------------- -------- --------
NEWSLETTER_ID NOT NULL NUMBER
SUBJECT_VC VARCHAR2
MAILTYPE_VC VARCHAR2
CONTENT_TXT CLOB
SCHEDULE_DT VARCHAR2
SYSTEM_HOOK_VC VARCHAR2
NSTATUS_SI NUMBER
TEMPLATE_ID NUMBER
my sql insert statemt is quite huge:
INSERT INTO Newsletter_T (Newsletter_ID,Subject_VC,MailType_VC,Content_Txt,Schedule_DT,nStatus_SI,system_hook_VC,Template_ID) VALUES (1,'DIVIDEND TEMPLATE','html','
Dear Shareholder,
BOARD MEETING NOTICE
We wish to inform you that, the Meeting of the Board of Directors of our Company is scheduled to be held on Monday, January 01, 2007 to take on record, amongst other business, the unaudited financial results and Segment-Wise Financial Report for quarter and half year Monday, January 01, 2007
We also wish to inform you that at the said Meeting, the Board of Directors will consider payment of Interim Dividend for the financial year 2007
The Record for this Interim Dividend is Monday, January 01, 2007 and the date of payment is Monday, January 01, 2007
We request you to provide us with your ECS details before Monday, January 01, 2007 to enable us to remit dividend through ECS.
(please ignore if you have already given this details)
XXXXXXXXX
Company Secretary &
Vice President – Human Resources
','28-Nov-2007',0,'474d0a0840d9a','1');
/////////////////////////////////////////////////////////////////////////////////
with all the carrige returns and spaces
it throws me an error :
[nativecode=S1000 [Oracle][ODBC][Ora]ORA-01704: string literal too long]
what is the problem??? :confused:
can any one please help me??
Thanks in advance