Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello ,
Im trying to execute this sql query :
and its throwing me this error :
Exception in component tDBRow_1 (SQL_File)
java.sql.SQLException: [SQL0104] El{ment syntaxique ; n'est pas correct. El{ments possibles : <FIN-INSTRUCTION>.
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:705)
i think that this componnent with this particular database AS400 is not supporting ';' ?
Thanks
Je crois que c'est problème niveau composant tDBRow AS400 vu que je l'avais déja fait fonctionné avec SQL Server
le "allowMultiQueries=true" je l'ai trouvé pour mysql il faudrait regarder il doit y avoir quelque-chose de similaire pour le AS400, après vu que tu utilise une connexion existante il faut peut etre le mettre dans la connexion le parametre JDBC : "allowMultiQueries=true"
I've changed the logic of my job to put the query into a tfileInputRaw then use it in tDBrow but always same problem .
tdbrow doesn't support neither the ';' and when i retrieve the ';' it's throwing me directly an error in the second line .
peut etre avec les instructions BEGIN et END ?
http://djugal.blogspot.com/2013/03/talend-writing-multiple-sql-queries-in.html
Oui je l'ai déja mis mais pas encore fonctionnelle
J'ai pas trop compris ? c'est ou l'erreur
@guenneguez jeremy
Je recois maintenant l'erreur vers la fin du script
Exception in component tDBRow_2 (SQL_File_Second_Method)
java.sql.SQLException: [SQL0104] Elément syntaxique ; n'est pas correct.
tu peux envoyer le script ?
SET SCHEMA XX;
DECLARE global temporary table xVariables
(
x numeric(3),
y varchar(3),
z numeric(8),
w numeric(8)
)
with replace ;
insert into xVariables
(
x,
y,
z,
w
)
values
(
100, -- Obligatoire
'test', -- Obligatoire
20201101, -- Obligatoire
20201231 -- Obligatoire
);
et en faisant ca :
"BEGIN
SET SCHEMA XX;
DECLARE global temporary table xVariables
(
x numeric(3),
y varchar(3),
z numeric(8),
w numeric(8)
)
with replace ;
insert into xVariables
(
x,
y,
z,
w
)
values
(
100, -- Obligatoire
'test', -- Obligatoire
20201101, -- Obligatoire
20201231 -- Obligatoire
);
END;"