本帖最后由 vgy12304 于 2012-08-03 17:45:14 编辑

解决方案 »

  1.   

    错误码: 1327
    Undeclared variable: size第二个参数变量就不对了
      

  2.   

    错误码: 1327
    Undeclared variable: size
      

  3.   

    set @q=concat('select album_id,size into @album_id , @size from ',p_tablename,' where id = ? ');
      

  4.   

     set @q=concat('select album_id into @album_idsize into @size from ',p_tablename,' where id = ? ');注意你这儿用了个什么符号,注意中文与英文的区别。 set @q=concat('select album_id into @album_id,size into @size from ',p_tablename,' where id = ? ');