_PakMan_ | Le truc c'est que ma syntaxe est correct etant donner que j'affiche les requetes et les execute sur PhpMyAdmin.
Pour l'utilisateur, je me connecte en root donc a prioris ca vient pas de la.
Y a-t-il un probleme pour effectuer plusieur requete en meme temps en java.
Genre:
Code :
- CREATE TEMPORARY TABLE maximums
- SELECT l1.event_id,l1.bookm_id AS bm1_id,l1.odds1,lx.bookm_id AS bmx_id,lx.oddsx,l2.bookm_id AS bm2_id,l2.odds2,
- (1/l1.odds1 + 1/l2.odds2 + 1/lx.oddsx) AS bookvalue
- FROM line AS l1,line AS lx,line AS l2
- WHERE l1.event_id = l2.event_id AND l1.event_id = lx.event_id
- AND l1.end_timestamp IS NULL AND lx.end_timestamp IS NULL AND l2.end_timestamp IS NULL
- AND lx.oddsx <> 0
- ORDER BY event_id, bookvalue ASC;
- CREATE TEMPORARY TABLE max SELECT event_id,bm1_id,odds1,bmx_id,oddsx,bm2_id,odds2
- FROM maximums GROUP BY event_id ORDER BY bookvalue ASC;
- INSERT INTO best_lines SELECT * FROM max
- ON DUPLICATE KEY UPDATE
- best_lines.odds1 = max.odds1,
- best_lines.bm1_id = max.bm1_id,
- best_lines.oddsx = max.oddsx,
- best_lines.bmx_id = max.bmx_id,
- best_lines.odds2 = max.odds2,
- best_lines.bm2_id = max.bm2_id ;
- DROP TEMPORARY TABLE max;
- DROP TEMPORARY TABLE maximums;
|
Je sais... ca fait peur comme requete, mais le fait d'executer ca en une seule fois en java peut-il poser probleme ? |