par
seb59210 » 19 oct. 2012, 10:01
Bonjour,
alors voila j'ai un logiciel qui exécute des requêtes SQL, voici un exemple de code:
Code : Tout sélectionner
INSERT INTO table (champ1, label, description, execution_type, operation_mode)
VALUES (
'${processInstance.getRootInstanceUUID()}',
'${evenement_libelle}',
'${evenement_description}',
'${type_execution}',
'${mode_operationnel}'
)
J'aimerais savoir comment faire un if (si la variable '${mode_operationnel}'
est égale à RUN alors
INSERT INTO table (champ1, label, description, execution_type, operation_mode)
VALUES (
'${processInstance.getRootInstanceUUID()}',
'${evenement_libelle}',
'${evenement_description}',
'${type_execution}',
'${mode_operationnel}'
sinon rien
Merci d'avance pour votre aide.
Séb,
Bonjour,
alors voila j'ai un logiciel qui exécute des requêtes SQL, voici un exemple de code:
[code]INSERT INTO table (champ1, label, description, execution_type, operation_mode)
VALUES (
'${processInstance.getRootInstanceUUID()}',
'${evenement_libelle}',
'${evenement_description}',
'${type_execution}',
'${mode_operationnel}'
)[/code]
J'aimerais savoir comment faire un if (si la variable '${mode_operationnel}' [b]est égale à RUN[/b] alors
INSERT INTO table (champ1, label, description, execution_type, operation_mode)
VALUES (
'${processInstance.getRootInstanceUUID()}',
'${evenement_libelle}',
'${evenement_description}',
'${type_execution}',
'${mode_operationnel}'
[b]sinon rien[/b]
Merci d'avance pour votre aide.
Séb,