I'm trying to insert a SQL statement into a CLOB datatype formatted column. I believe the problem originates from the fact that the SQL statement has quote marks within it. Has anyone ever had this problem before? I have attached the Insert statement below.
Thanks in advance
-Matt
INSERT INTO COPY_OF_CNTR_ID.IAVA_SQL_SENTENCES (SENTENCE, IAVA, THREATASST, RELEASEDATE, ACKSUSPENSE, COMPSUSPENSE, STATE, NOTES) VALUES ('SELECT DISTINCT COPY_OF_CNTR_ID.SOFTINV.IP_ADDRESS FROM COPY_OF_CNTR_ID.SOFTINV WHERE (COPY_OF_CNTR_ID.SOFTINV.SID_) IN (SELECT COPY_OF_CNTR_ID.SOFTWARE.SID_ FROM COPY_OF_CNTR_ID.SOFTWARE WHERE COPY_OF_CNTR_ID.SOFTWARE.MFG Like 'Symantec' AND COPY_OF_CNTR_ID.SOFTWARE.TITLE Like 'Norton Personal Firewall' AND COPY_OF_CNTR_ID.SOFTWARE.VERSION >'2002') OR (COPY_OF_CNTR_ID.SOFTINV.SID_) IN (SELECT COPY_OF_CNTR_ID.SOFTWARE.SID_ FROM COPY_OF_CNTR_ID.SOFTWARE WHERE COPY_OF_CNTR_ID.SOFTWARE.MFG Like 'AAA' AND COPY_OF_CNTR_ID.SOFTWARE.TITLE Like 'Street Atlas' AND COPY_OF_CNTR_ID.SOFTWARE.VERSION='6')', '2003-A-0012', 'High', '12/03/2003', '02/20/2004', '10/14/2004', 'In Progress', 'Notes')
Thanks in advance
-Matt
INSERT INTO COPY_OF_CNTR_ID.IAVA_SQL_SENTENCES (SENTENCE, IAVA, THREATASST, RELEASEDATE, ACKSUSPENSE, COMPSUSPENSE, STATE, NOTES) VALUES ('SELECT DISTINCT COPY_OF_CNTR_ID.SOFTINV.IP_ADDRESS FROM COPY_OF_CNTR_ID.SOFTINV WHERE (COPY_OF_CNTR_ID.SOFTINV.SID_) IN (SELECT COPY_OF_CNTR_ID.SOFTWARE.SID_ FROM COPY_OF_CNTR_ID.SOFTWARE WHERE COPY_OF_CNTR_ID.SOFTWARE.MFG Like 'Symantec' AND COPY_OF_CNTR_ID.SOFTWARE.TITLE Like 'Norton Personal Firewall' AND COPY_OF_CNTR_ID.SOFTWARE.VERSION >'2002') OR (COPY_OF_CNTR_ID.SOFTINV.SID_) IN (SELECT COPY_OF_CNTR_ID.SOFTWARE.SID_ FROM COPY_OF_CNTR_ID.SOFTWARE WHERE COPY_OF_CNTR_ID.SOFTWARE.MFG Like 'AAA' AND COPY_OF_CNTR_ID.SOFTWARE.TITLE Like 'Street Atlas' AND COPY_OF_CNTR_ID.SOFTWARE.VERSION='6')', '2003-A-0012', 'High', '12/03/2003', '02/20/2004', '10/14/2004', 'In Progress', 'Notes')