Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

Topic-icon Question SQL Operation

06 Jun 2016 10:52 - 06 Jun 2016 10:55 #1 by [email protected]
[email protected] created the topic: SQL Operation
Bonjour :)
j'ai un sdlOperation qui fait :

insert into table1 (...............) select (${val1}$, champ1, champ2) from table2;

${val1}$ n'est pas un champs de la table2

Stambia lit le contenu de la variable mais considère la valeur comme un champ, et retour une erreur

Avez vous la moindre idée sur comment le résoudre?
Merci infiniment :)
Last Edit: 06 Jun 2016 10:55 by [email protected].
More
06 Jun 2016 16:11 #2 by Thomas BLETON
Thomas BLETON replied the topic: SQL Operation
Bonjour :)

Avez-vous essayé d'ajouter des quotes autour de la valeur ? Comme ceci :
insert into table1 (...............) select ('${val1}$', champ1, champ2) from table2;
06 Jun 2016 18:57 #3 by [email protected]
[email protected] replied the topic: SQL Operation
Merciiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii :):):):):)
Ça marche :cheer: