createorreplaceprocedureadd_app_msg_push(v_titleinvarchar2,v_msginCLOB,v_timeintimestamp,v_urlinvarchar2)isv_idnumber(30);old_msgclob;v_countnumber(30);v_msg_partvarchar2...
create or replace procedure add_app_msg_push(v_title in varchar2,v_msg in CLOB,v_time in timestamp,v_url in varchar2) isv_id number(30);old_msg clob;v_count number(30);v_msg_part varchar2(1000);v_length number(30);begin if v_msg is null then dbms_output.put_line('null'); return; else insert into APP_MSG_PUSH_HISTORY (ID, TITLE, MSG, TIME, URL) values (v_id, v_title, empty_clob(), v_time,v_url); dbms_output.put_line('not null'); end if; v_count := 1; v_length := dbms_lob.getlength(v_msg); select msg into old_msg from APP_MSG_PUSH_HISTORY where id = 91; dbms_output.put_line(dbms_lob.getlength(old_msg)); dbms_output.put_line('--'); dbms_output.put_line(dbms_lob.getlength(v_msg)); dbms_output.put_line('--');end add_app_msg_push;
上面是我写的存储过程,入参有个v_msg是clob类型的,然后我进行了下面测试
我怎样才能传进去clob类型的值,求大神救命
展开