Question : mysql stored proc parameter

Hi,

How do i add my SEAS parameter into the season part of my Proc?

so where i have  SET P_SEASON = 'H08'

I want to have
 SET P_SEASON = ',SEAS,'

and in the call, populate the fied to be season 'H09'



also what is the alternative to LOAD DATA, as this is not possible in Mysql stored proc.
Thanks guys
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
delimiter $$
Drop procedure if exists `havais` $$
create procedure `havais`(SEAS varchar(20))

BEGIN

UPDATE havais
SET B_DESCRIPTION=replace(B_DESCRIPTION,E_SIZE,'');
    UPDATE havais
    SET A_STYLECODE =replace(A_STYLECODE,E_SIZE,'');
        UPDATE havais
        SET C_SHORT_COLOUR = left(D_FULL_COLOUR,5);
            UPDATE havais
            SET E_SIZE = left(E_SIZE,3);
                  UPDATE havais
                  SET M_SUBDEPARTMENT = L_DEPARTMENT;
            UPDATE havais
            SET P_SEASON = 'H08' ;
        UPDATE havais
        SET S_VALID_MONTHS = "YYYYYYYYYYYY";
    UPDATE havais
    SET AD_RESERVED_B = '';

SET @selhav = concat("
select * from havais order by N_PRODUCT  ") ;

prepare hav from @selhav;
execute hav;
deallocate prepare hav ;


END $$
DELIMITER $$

call `havais`('H09');

Answer : mysql stored proc parameter

>LOAD DATA is not allowed in stored procedures.  errorNr 1314.
well, it WAS possible, but visibly disallowed meanwhile:
http://bugs.mysql.com/bug.php?id=14977
Random Solutions  
 
programming4us programming4us