I want to delete XML empty nodes when insert a table in stored procedure. I have tried some code, it throw error as
PL/SQL: ORA-00932: inconsistent datatypes: expected - got CLOB.
So please any one help me to find out the clob error. int_content column variable is clob only.
INSERT
INTO int_details
(
int_rid,
int_cpy,
int_brn,
int_sre,
int_ree,
int_type,
int_filename,
int_content,
int_status,
int_remarks,
int_blob_content
)
VALUES
(
v_int_rid,
p_cpy_rid,
1,
p_inty_rid,
null,
null,
TO_CHAR(sysdate, 'DDMMYYHH24MISS')||'.xml',
deleteXML(v_clob, '//*[not(text())][not(*)]').getclobval(),
'Active',
'EDI Generated on'||TO_CHAR(sysdate, 'DD-MON-YYY HH24:MI:SS'),
v_blob
);
nullin the middle of the values list? It looks like you're missing at least one comma. Why concatenate a null onto a string? It's a non-op. Also I recommend you make your values list 11 lines (don't put a new line in your string concats) or comment your values so you know what they are when there are a lot of concats - Caius Jard