我想在存储过程的表中插入多行, 必须考虑一下,我的值是在临时数组中恢复的,如下所示:
mysql> select * from temp_tblist;
mysql> select * from temp_tblist ;
+------------------------------+---------------+--------------+-----------+
| id | NOm | Mois | Remise |
+------------------------------+---------------+--------------+-----------+
| 1 |Côte d'Ivoire |Janvier 2019 | 2 |
| 2 | Sénégal | Janvier 2019 | 1 |
+------------------------------+---------------+-----------+--------------+
2 rows in set (0.30 sec)
我的程序的结果应该如下:
mysql> call GET_ECERBER_STAT_BY_LIST('2018-01-01','2019-12-29','NBReceived','CIV,SN',null);
+------------------------------+---------------+--------------+-----------+
| Titre | Valeur1 | Valeur2 | Valeur3 |
+------------------------------+---------------+--------------+-----------+
| Côte d'Ivoire |10 |15 | 21 |
| Sénégal |2 |5 | 11 |
+------------------------------+---------------+-----------+--------------+
2 rows in set (0.30 sec)
当前,我只能在表中插入一个值,如下所示:
mysql> call GET_ECERBER_STAT_BY_LIST('2018-01-01','2019-12-29','NBReceived','CIV',null);
+------------------------------+---------------+--------------+-----------+
| Titre | Valeur1 | Valeur2 | Valeur3 |
+------------------------------+---------------+--------------+-----------+
| Côte d'Ivoire |10 |15 | 21 |
+------------------------------+---------------+-----------+--------------+
1 rows in set (0.30 sec)
为sp添加创建语法
CREATE DEFINER=`root`@`localhost` PROCEDURE `GET_ECERBER_STAT_BY_LIST`(datedebut DATETIME, datefin DATETIME,information VARCHAR(4000),IN str_pays VARCHAR(4000),str_banque VARCHAR(4000))
BEGIN
if information = 'NBReceived' then
DROP TABLE IF EXISTS temp_tblist;
truncate table stat_by_list;
SET @row_number = 0;
SET lc_time_names = 'fr_FR';
CREATE TABLE temp_tblist(
id INT(100) NOT NULL, Pays varchar(255) NOT NULL, Mois varchar(255) NOT NULL,Remise INT(100) NOT NULL, PRIMARY KEY (id))
ENGINE=MEMORY AS (select (@row_number:=@row_number + 1) as id,c.name_ as Pays,CONCAT(UCASE(MID(DATE_FORMAT(rr.date_,"%M %Y"),1,1)),LCASE(MID(DATE_FORMAT(rr.date_,"%M %Y"),2))) as Mois,count(*) as Remise from REGULATORYR rr INNER JOIN country c ON rr.COUNTRYPK_=c.pk_
where rr.date_ in (select distinct rr.date_ as dater
from REGULATORYR rr, country c
where rr.date_>=datedebut and rr.date_<= datefin
and c.pk_=rr.countrypk_
group by substring(rr.date_,1,7))
and c.pk_=rr.countrypk_ and c.CODE_ = str_pays
group by COUNTRYPK_, substring(rr.date_,1,7)
order by c.name_);
set @name_pays = (SELECT Pays FROM temp_tblist WHERE id=1);
set @val1 = (SELECT Remise FROM temp_tblist WHERE id=1);set @val2 = (SELECT Remise FROM temp_tblist WHERE id=2);set @val3 = (SELECT Remise FROM temp_tblist WHERE id=3);set @val4 = (SELECT Remise FROM temp_tblist WHERE id=4);
set @val5 = (SELECT Remise FROM temp_tblist WHERE id=5);set @val6 = (SELECT Remise FROM temp_tblist WHERE id=6);set @val7 = (SELECT Remise FROM temp_tblist WHERE id=7);set @val8 = (SELECT Remise FROM temp_tblist WHERE id=8);
set @val9 = (SELECT Remise FROM temp_tblist WHERE id=9);set @val10 = (SELECT Remise FROM temp_tblist WHERE id=10);set @val11 = (SELECT Remise FROM temp_tblist WHERE id=11);set @val12 = (SELECT Remise FROM temp_tblist WHERE id=12);
set @val13 = (SELECT Remise FROM temp_tblist WHERE id=13);set @val14 = (SELECT Remise FROM temp_tblist WHERE id=14);set @val15 = (SELECT Remise FROM temp_tblist WHERE id=15);set @val16 = (SELECT Remise FROM temp_tblist WHERE id=16);
set @val17 = (SELECT Remise FROM temp_tblist WHERE id=17);set @val18 = (SELECT Remise FROM temp_tblist WHERE id=18);set @val19 = (SELECT Remise FROM temp_tblist WHERE id=19);set @val20 = (SELECT Remise FROM temp_tblist WHERE id=20);
set @val21 = (SELECT Remise FROM temp_tblist WHERE id=21);set @val22 = (SELECT Remise FROM temp_tblist WHERE id=22);set @val23 = (SELECT Remise FROM temp_tblist WHERE id=23);set @val24 = (SELECT Remise FROM temp_tblist WHERE id=24);
set @val25 = (SELECT Remise FROM temp_tblist WHERE id=25);set @val26 = (SELECT Remise FROM temp_tblist WHERE id=26);set @val27 =(SELECT Remise FROM temp_tblist WHERE id=27);set @val28 =(SELECT Remise FROM temp_tblist WHERE id=28);
set @val29 = (SELECT Remise FROM temp_tblist WHERE id=29);set @val30 = (SELECT Remise FROM temp_tblist WHERE id=30);set @val31 = (SELECT Remise FROM temp_tblist WHERE id=31);set @val32 = (SELECT Remise FROM temp_tblist WHERE id=32);
set @val33 = (SELECT Remise FROM temp_tblist WHERE id=33);set @val34 = (SELECT Remise FROM temp_tblist WHERE id=34);set @val35 = (SELECT Remise FROM temp_tblist WHERE id=35);set @val36 = (SELECT Remise FROM temp_tblist WHERE id=36);
set @val37 = (SELECT Remise FROM temp_tblist WHERE id=37);set @val38 = (SELECT Remise FROM temp_tblist WHERE id=38);set @val39 = (SELECT Remise FROM temp_tblist WHERE id=39);set @val40 = (SELECT Remise FROM temp_tblist WHERE id=40);
set @val41 = (SELECT Remise FROM temp_tblist WHERE id=41);set @val42 = (SELECT Remise FROM temp_tblist WHERE id=42);set @val43 = (SELECT Remise FROM temp_tblist WHERE id=43);set @val44 = (SELECT Remise FROM temp_tblist WHERE id=44);
set @val45 = (SELECT Remise FROM temp_tblist WHERE id=45);set @val46 = (SELECT Remise FROM temp_tblist WHERE id=46);set @val47 = (SELECT Remise FROM temp_tblist WHERE id=47);set @val48 = (SELECT Remise FROM temp_tblist WHERE id=48);
set @val49 = (SELECT Remise FROM temp_tblist WHERE id=49);set @val50 = (SELECT Remise FROM temp_tblist WHERE id=50);set @val51 = (SELECT Remise FROM temp_tblist WHERE id=51);
insert into stat_by_list(TITRE_,VALEUR1_,VALEUR2_,VALEUR3_,VALEUR4_,VALEUR5_,VALEUR6_,VALEUR7_,VALEUR8_,VALEUR9_,VALEUR10_,VALEUR11_,VALEUR12_,VALEUR13_,VALEUR14_,VALEUR15_,VALEUR16_,VALEUR17_,VALEUR18_,VALEUR19_,VALEUR20_,VALEUR21_,VALEUR22_,VALEUR23_,VALEUR24_,VALEUR25_,VALEUR26_,VALEUR27_,VALEUR28_,VALEUR29_,VALEUR30_,VALEUR31_,VALEUR32_,VALEUR33_,VALEUR34_,VALEUR35_,VALEUR36_,VALEUR37_,VALEUR38_,VALEUR39_,VALEUR40_,VALEUR41_,VALEUR42_,VALEUR43_,VALEUR44_,VALEUR45_,VALEUR46_,VALEUR47_,VALEUR48_,VALEUR49_,
VALEUR50_)
values (@name_pays,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,
@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,
@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,
@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,
@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50
);
select * from stat_by_list;
end if;
End
并创建表
CREATE TABLE IF NOT EXISTS stat_by_list(TITRE_ VARCHAR(255),VALEUR1_ INT(11),
VALEUR2_ INT(11),VALEUR3_ INT(11),VALEUR4_ INT(11),VALEUR5_ INT(11),
VALEUR6_ INT(11),VALEUR7_ INT(11),VALEUR8_ INT(11),VALEUR9_ INT(11),
VALEUR10_ INT(11),VALEUR11_ INT(11),VALEUR12_ INT(11),
VALEUR13_ ......,VALEUR50_ );
答案 0 :(得分:0)
CREATE DEFINER=`root`@`localhost` PROCEDURE `GET_ECERBER_STAT_BY_LIST`(datedebut DATETIME, datefin DATETIME,information VARCHAR(4000),IN str_pays VARCHAR(4000),str_banque VARCHAR(4000))
BEGIN
if information = 'NBReceived' then
DROP TABLE IF EXISTS temp_tblist;
truncate table stat_by_list;
SET @row_number = 0;
SET lc_time_names = 'fr_FR';
CREATE TABLE temp_tblist(
id INT(100) NOT NULL, Pays varchar(255) NOT NULL, Mois varchar(255) NOT NULL,Remise INT(100) NOT NULL, PRIMARY KEY (id))
ENGINE=MEMORY AS (select (@row_number:=@row_number + 1) as id,c.name_ as Pays,CONCAT(UCASE(MID(DATE_FORMAT(rr.date_,"%M %Y"),1,1)),LCASE(MID(DATE_FORMAT(rr.date_,"%M %Y"),2))) as Mois,count(*) as Remise from REGULATORYR rr INNER JOIN country c ON rr.COUNTRYPK_=c.pk_
where rr.date_ in (select distinct rr.date_ as dater
from REGULATORYR rr, country c
where rr.date_>=datedebut and rr.date_<= datefin
and c.pk_=rr.countrypk_
group by substring(rr.date_,1,7))
and c.pk_=rr.countrypk_ and c.CODE_ = str_pays
group by COUNTRYPK_, substring(rr.date_,1,7)
order by c.name_);
set @name_pays = (SELECT Pays FROM temp_tblist WHERE id=1);
set @val1 = (SELECT Remise FROM temp_tblist WHERE id=1);set @val2 = (SELECT Remise FROM temp_tblist WHERE id=2);set @val3 = (SELECT Remise FROM temp_tblist WHERE id=3);set @val4 = (SELECT Remise FROM temp_tblist WHERE id=4);
set @val5 = (SELECT Remise FROM temp_tblist WHERE id=5);set @val6 = (SELECT Remise FROM temp_tblist WHERE id=6);set @val7 = (SELECT Remise FROM temp_tblist WHERE id=7);set @val8 = (SELECT Remise FROM temp_tblist WHERE id=8);
set @val9 = (SELECT Remise FROM temp_tblist WHERE id=9);set @val10 = (SELECT Remise FROM temp_tblist WHERE id=10);set @val11 = (SELECT Remise FROM temp_tblist WHERE id=11);set @val12 = (SELECT Remise FROM temp_tblist WHERE id=12);
set @val13 = (SELECT Remise FROM temp_tblist WHERE id=13);set @val14 = (SELECT Remise FROM temp_tblist WHERE id=14);set @val15 = (SELECT Remise FROM temp_tblist WHERE id=15);set @val16 = (SELECT Remise FROM temp_tblist WHERE id=16);
set @val17 = (SELECT Remise FROM temp_tblist WHERE id=17);set @val18 = (SELECT Remise FROM temp_tblist WHERE id=18);set @val19 = (SELECT Remise FROM temp_tblist WHERE id=19);set @val20 = (SELECT Remise FROM temp_tblist WHERE id=20);
set @val21 = (SELECT Remise FROM temp_tblist WHERE id=21);set @val22 = (SELECT Remise FROM temp_tblist WHERE id=22);set @val23 = (SELECT Remise FROM temp_tblist WHERE id=23);set @val24 = (SELECT Remise FROM temp_tblist WHERE id=24);
set @val25 = (SELECT Remise FROM temp_tblist WHERE id=25);set @val26 = (SELECT Remise FROM temp_tblist WHERE id=26);set @val27 =(SELECT Remise FROM temp_tblist WHERE id=27);set @val28 =(SELECT Remise FROM temp_tblist WHERE id=28);
set @val29 = (SELECT Remise FROM temp_tblist WHERE id=29);set @val30 = (SELECT Remise FROM temp_tblist WHERE id=30);set @val31 = (SELECT Remise FROM temp_tblist WHERE id=31);set @val32 = (SELECT Remise FROM temp_tblist WHERE id=32);
set @val33 = (SELECT Remise FROM temp_tblist WHERE id=33);set @val34 = (SELECT Remise FROM temp_tblist WHERE id=34);set @val35 = (SELECT Remise FROM temp_tblist WHERE id=35);set @val36 = (SELECT Remise FROM temp_tblist WHERE id=36);
set @val37 = (SELECT Remise FROM temp_tblist WHERE id=37);set @val38 = (SELECT Remise FROM temp_tblist WHERE id=38);set @val39 = (SELECT Remise FROM temp_tblist WHERE id=39);set @val40 = (SELECT Remise FROM temp_tblist WHERE id=40);
set @val41 = (SELECT Remise FROM temp_tblist WHERE id=41);set @val42 = (SELECT Remise FROM temp_tblist WHERE id=42);set @val43 = (SELECT Remise FROM temp_tblist WHERE id=43);set @val44 = (SELECT Remise FROM temp_tblist WHERE id=44);
set @val45 = (SELECT Remise FROM temp_tblist WHERE id=45);set @val46 = (SELECT Remise FROM temp_tblist WHERE id=46);set @val47 = (SELECT Remise FROM temp_tblist WHERE id=47);set @val48 = (SELECT Remise FROM temp_tblist WHERE id=48);
set @val49 = (SELECT Remise FROM temp_tblist WHERE id=49);set @val50 = (SELECT Remise FROM temp_tblist WHERE id=50);set @val51 = (SELECT Remise FROM temp_tblist WHERE id=51);
insert into stat_by_list(TITRE_,VALEUR1_,VALEUR2_,VALEUR3_,VALEUR4_,VALEUR5_,VALEUR6_,VALEUR7_,VALEUR8_,VALEUR9_,VALEUR10_,VALEUR11_,VALEUR12_,VALEUR13_,VALEUR14_,VALEUR15_,VALEUR16_,VALEUR17_,VALEUR18_,VALEUR19_,VALEUR20_,VALEUR21_,VALEUR22_,VALEUR23_,VALEUR24_,VALEUR25_,VALEUR26_,VALEUR27_,VALEUR28_,VALEUR29_,VALEUR30_,VALEUR31_,VALEUR32_,VALEUR33_,VALEUR34_,VALEUR35_,VALEUR36_,VALEUR37_,VALEUR38_,VALEUR39_,VALEUR40_,VALEUR41_,VALEUR42_,VALEUR43_,VALEUR44_,VALEUR45_,VALEUR46_,VALEUR47_,VALEUR48_,VALEUR49_,
VALEUR50_)
values (@name_pays,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,
@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,
@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,
@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,
@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50
);
select * from stat_by_list;
end if;
End
答案 1 :(得分:0)
在这里,发现您只为id = 1的@name_pays
插入,这就是为什么只得到一行作为结果集的原因。请尝试以下过程,
CREATE DEFINER=`root`@`localhost` PROCEDURE `GET_ECERBER_STAT_BY_LIST`(datedebut DATETIME, datefin DATETIME,information VARCHAR(4000),IN str_pays VARCHAR(4000),str_banque VARCHAR(4000))
BEGIN
if information = 'NBReceived' then
DROP TABLE IF EXISTS temp_tblist;
truncate table stat_by_list;
SET @row_number = 0;
SET lc_time_names = 'fr_FR';
CREATE TABLE temp_tblist(
id INT(100) NOT NULL, Pays varchar(255) NOT NULL, Mois varchar(255) NOT NULL,Remise INT(100) NOT NULL, PRIMARY KEY (id))
ENGINE=MEMORY AS (select (@row_number:=@row_number + 1) as id,c.name_ as Pays,CONCAT(UCASE(MID(DATE_FORMAT(rr.date_,"%M %Y"),1,1)),LCASE(MID(DATE_FORMAT(rr.date_,"%M %Y"),2))) as Mois,count(*) as Remise from REGULATORYR rr INNER JOIN country c ON rr.COUNTRYPK_=c.pk_
where rr.date_ in (select distinct rr.date_ as dater
from REGULATORYR rr, country c
where rr.date_>=datedebut and rr.date_<= datefin
and c.pk_=rr.countrypk_
group by substring(rr.date_,1,7))
and c.pk_=rr.countrypk_ and c.CODE_ = str_pays
group by COUNTRYPK_, substring(rr.date_,1,7)
order by c.name_);
set @name_pays1 = (SELECT Pays FROM temp_tblist WHERE id=1);set @name_pays2 = (SELECT Pays FROM temp_tblist WHERE id=2);set @name_pays3 = (SELECT Pays FROM temp_tblist WHERE id=3);set @name_pays4 = (SELECT Pays FROM temp_tblist WHERE id=4);set @name_pays5 = (SELECT Pays FROM temp_tblist WHERE id=5);set @name_pays6 = (SELECT Pays FROM temp_tblist WHERE id=6);set @name_pays7 = (SELECT Pays FROM temp_tblist WHERE id=7);set @name_pays8 = (SELECT Pays FROM temp_tblist WHERE id=8);set @name_pays9 = (SELECT Pays FROM temp_tblist WHERE id=9);set @name_pays10 = (SELECT Pays FROM temp_tblist WHERE id=10);set @name_pays11 = (SELECT Pays FROM temp_tblist WHERE id=11);set @name_pays12 = (SELECT Pays FROM temp_tblist WHERE id=12);set @name_pays13 = (SELECT Pays FROM temp_tblist WHERE id=13);set @name_pays14 = (SELECT Pays FROM temp_tblist WHERE id=14);set @name_pays15 = (SELECT Pays FROM temp_tblist WHERE id=15);set @name_pays16 = (SELECT Pays FROM temp_tblist WHERE id=16);set @name_pays17 = (SELECT Pays FROM temp_tblist WHERE id=17);set @name_pays18 = (SELECT Pays FROM temp_tblist WHERE id=18);set @name_pays19 = (SELECT Pays FROM temp_tblist WHERE id=19);set @name_pays20 = (SELECT Pays FROM temp_tblist WHERE id=20);set @name_pays21 = (SELECT Pays FROM temp_tblist WHERE id=21);set @name_pays22 = (SELECT Pays FROM temp_tblist WHERE id=22);set @name_pays23 = (SELECT Pays FROM temp_tblist WHERE id=23);set @name_pays24 = (SELECT Pays FROM temp_tblist WHERE id=24);set @name_pays25 = (SELECT Pays FROM temp_tblist WHERE id=25);set @name_pays26 = (SELECT Pays FROM temp_tblist WHERE id=26);set @name_pays27 = (SELECT Pays FROM temp_tblist WHERE id=27);set @name_pays28 = (SELECT Pays FROM temp_tblist WHERE id=28);set @name_pays29 = (SELECT Pays FROM temp_tblist WHERE id=29);set @name_pays30 = (SELECT Pays FROM temp_tblist WHERE id=30);set @name_pays31 = (SELECT Pays FROM temp_tblist WHERE id=31);set @name_pays32 = (SELECT Pays FROM temp_tblist WHERE id=32);set @name_pays33 = (SELECT Pays FROM temp_tblist WHERE id=33);set @name_pays34 = (SELECT Pays FROM temp_tblist WHERE id=34);set @name_pays35 = (SELECT Pays FROM temp_tblist WHERE id=35);set @name_pays36 = (SELECT Pays FROM temp_tblist WHERE id=36);set @name_pays37 = (SELECT Pays FROM temp_tblist WHERE id=37);set @name_pays38 = (SELECT Pays FROM temp_tblist WHERE id=38);set @name_pays39 = (SELECT Pays FROM temp_tblist WHERE id=39);set @name_pays40 = (SELECT Pays FROM temp_tblist WHERE id=40);set @name_pays41 = (SELECT Pays FROM temp_tblist WHERE id=41);set @name_pays42 = (SELECT Pays FROM temp_tblist WHERE id=42);set @name_pays43 = (SELECT Pays FROM temp_tblist WHERE id=43);set @name_pays44 = (SELECT Pays FROM temp_tblist WHERE id=44);set @name_pays45 = (SELECT Pays FROM temp_tblist WHERE id=45);set @name_pays46 = (SELECT Pays FROM temp_tblist WHERE id=46);set @name_pays47 = (SELECT Pays FROM temp_tblist WHERE id=47);set @name_pays48 = (SELECT Pays FROM temp_tblist WHERE id=48);set @name_pays49 = (SELECT Pays FROM temp_tblist WHERE id=49);set @name_pays50 = (SELECT Pays FROM temp_tblist WHERE id=50);
set @val1 = (SELECT Remise FROM temp_tblist WHERE id=1);set @val2 = (SELECT Remise FROM temp_tblist WHERE id=2);set @val3 = (SELECT Remise FROM temp_tblist WHERE id=3);set @val4 = (SELECT Remise FROM temp_tblist WHERE id=4);
set @val5 = (SELECT Remise FROM temp_tblist WHERE id=5);set @val6 = (SELECT Remise FROM temp_tblist WHERE id=6);set @val7 = (SELECT Remise FROM temp_tblist WHERE id=7);set @val8 = (SELECT Remise FROM temp_tblist WHERE id=8);
set @val9 = (SELECT Remise FROM temp_tblist WHERE id=9);set @val10 = (SELECT Remise FROM temp_tblist WHERE id=10);set @val11 = (SELECT Remise FROM temp_tblist WHERE id=11);set @val12 = (SELECT Remise FROM temp_tblist WHERE id=12);
set @val13 = (SELECT Remise FROM temp_tblist WHERE id=13);set @val14 = (SELECT Remise FROM temp_tblist WHERE id=14);set @val15 = (SELECT Remise FROM temp_tblist WHERE id=15);set @val16 = (SELECT Remise FROM temp_tblist WHERE id=16);
set @val17 = (SELECT Remise FROM temp_tblist WHERE id=17);set @val18 = (SELECT Remise FROM temp_tblist WHERE id=18);set @val19 = (SELECT Remise FROM temp_tblist WHERE id=19);set @val20 = (SELECT Remise FROM temp_tblist WHERE id=20);
set @val21 = (SELECT Remise FROM temp_tblist WHERE id=21);set @val22 = (SELECT Remise FROM temp_tblist WHERE id=22);set @val23 = (SELECT Remise FROM temp_tblist WHERE id=23);set @val24 = (SELECT Remise FROM temp_tblist WHERE id=24);
set @val25 = (SELECT Remise FROM temp_tblist WHERE id=25);set @val26 = (SELECT Remise FROM temp_tblist WHERE id=26);set @val27 =(SELECT Remise FROM temp_tblist WHERE id=27);set @val28 =(SELECT Remise FROM temp_tblist WHERE id=28);
set @val29 = (SELECT Remise FROM temp_tblist WHERE id=29);set @val30 = (SELECT Remise FROM temp_tblist WHERE id=30);set @val31 = (SELECT Remise FROM temp_tblist WHERE id=31);set @val32 = (SELECT Remise FROM temp_tblist WHERE id=32);
set @val33 = (SELECT Remise FROM temp_tblist WHERE id=33);set @val34 = (SELECT Remise FROM temp_tblist WHERE id=34);set @val35 = (SELECT Remise FROM temp_tblist WHERE id=35);set @val36 = (SELECT Remise FROM temp_tblist WHERE id=36);
set @val37 = (SELECT Remise FROM temp_tblist WHERE id=37);set @val38 = (SELECT Remise FROM temp_tblist WHERE id=38);set @val39 = (SELECT Remise FROM temp_tblist WHERE id=39);set @val40 = (SELECT Remise FROM temp_tblist WHERE id=40);
set @val41 = (SELECT Remise FROM temp_tblist WHERE id=41);set @val42 = (SELECT Remise FROM temp_tblist WHERE id=42);set @val43 = (SELECT Remise FROM temp_tblist WHERE id=43);set @val44 = (SELECT Remise FROM temp_tblist WHERE id=44);
set @val45 = (SELECT Remise FROM temp_tblist WHERE id=45);set @val46 = (SELECT Remise FROM temp_tblist WHERE id=46);set @val47 = (SELECT Remise FROM temp_tblist WHERE id=47);set @val48 = (SELECT Remise FROM temp_tblist WHERE id=48);
set @val49 = (SELECT Remise FROM temp_tblist WHERE id=49);set @val50 = (SELECT Remise FROM temp_tblist WHERE id=50);set @val51 = (SELECT Remise FROM temp_tblist WHERE id=51);
insert into stat_by_list(TITRE_,VALEUR1_,VALEUR2_,VALEUR3_,VALEUR4_,VALEUR5_,VALEUR6_,VALEUR7_,VALEUR8_,VALEUR9_,VALEUR10_,VALEUR11_,VALEUR12_,VALEUR13_,VALEUR14_,VALEUR15_,VALEUR16_,VALEUR17_,VALEUR18_,VALEUR19_,VALEUR20_,VALEUR21_,VALEUR22_,VALEUR23_,VALEUR24_,VALEUR25_,VALEUR26_,VALEUR27_,VALEUR28_,VALEUR29_,VALEUR30_,VALEUR31_,VALEUR32_,VALEUR33_,VALEUR34_,VALEUR35_,VALEUR36_,VALEUR37_,VALEUR38_,VALEUR39_,VALEUR40_,VALEUR41_,VALEUR42_,VALEUR43_,VALEUR44_,VALEUR45_,VALEUR46_,VALEUR47_,VALEUR48_,VALEUR49_,
VALEUR50_)
values ((@name_pays1,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays2,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays3,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays4,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays5,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays6,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays7,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays8,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays9,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays10,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays11,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays12,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays13,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays14,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays15,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays16,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays17,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays18,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays19,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays20,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays21,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays22,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays23,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays24,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays25,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays26,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays27,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays28,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays29,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays30,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays31,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays32,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays33,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays34,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays35,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays36,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays37,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays38,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays39,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays40,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays41,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays42,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays43,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays44,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays45,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays46,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays47,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays48,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays49,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50),
(@name_pays50,@val1,@val2,@val3,@val4, @val5,@val6,@val7,@val8,@val9,@val10,@val11,@val12,@val13,@val14,@val15,@val16,@val17,@val18,@val19,@val20,@val21,@val22,@val23,@val24,@val25,@val26,@val27,@val28,@val29,@val30,@val31,@val32,@val33,@val34,@val35,@val36,@val37,@val38,@val39,@val40,@val41,@val42,@val43,@val44,@val45,@val46,@val47,@val48,@val49,@val50));
select * from stat_by_list;
end if;
End