在存储过程里生成,存在定义变量m_code;
它的值是拼装出来的,如下:
alter table LsCarrierInfo  add partition p_2015_2016 values less than(to_date('2016-12-31','yyyy-mm-dd'));在存储过程里我想执行这句话,该怎么做?
begin 
      exec m_code;
              dbms_output.put_line('插入表成功!');
      exception when others then 
              dbms_output.put_line('插入表失败!');
    end;
报错,刚开始使用oracle,请大家指点?