create or replace procedure BRH_SEQ_GENERATOR(appType in VARCHAR, bizType in VARCHAR, seqNo out varchar) is
begin
  select t.current_value || appType || bizType || LAST_INSERT_ID()
  into seqNo
  from comm_perform_param t
  where t.code = 'biz.settle.date';
end BRH_SEQ_GENERATOR;

解决方案 »

  1.   

    delimiter //create procedure BRH_SEQ_GENERATOR (appType VARCHAR(100), bizType VARCHAR(100), seqNo out varchar(100)) 
      select concat(t.current_value , appType , bizType , LAST_INSERT_ID()
      into seqNo
      from comm_perform_param t
      where t.code = 'biz.settle.date';
    end//
    delimiter ;
      

  2.   

    delimiter$$
    create or replace pricedure BRH_SEQ_GENERATOR
    (appType in VARCHAR,bizType in VARCHAR,seqno out varchar)
    is
    begin
    select concat(t.current_value,t.apptype,t.bizType,t.Last_Insert_ID())
    into seqno
    from comm_perform_param t
    end$$
    delimiter;
      

  3.   

    delimiter$$ 
    create or replace procedure BRH_SEQ_GENERATOR 
    (appType in VARCHAR,bizType in VARCHAR,seqno out varchar) 
    is
    begin
    select concat(t.current_value,t.apptype,t.bizType,t.Last_Insert_ID()) 
    into seqno 
    from comm_perform_param t;
    end$$ 
    delimiter;