« MySQL/Variables utilisateurs » : différence entre les versions

Contenu supprimé Contenu ajouté
Page créée avec « {{MySQL}} == Session Variables == * The ability to set variables in a statement with the := assignment operator: * For e.g. (@total) to calculate the total in an example, ... »
 
Aucun résumé des modifications
Ligne 1 :
{{MySQL}}
== Session Variables de session ==
La possibilité de définir des variables dans une requête est assurée par l'opérateur d'assignation <code>:=</code>.
* The ability to set variables in a statement with the := assignment operator:
 
*Par Forexemple, e.g.soit (<code>@total)</code> toune calculatevariable theservant totalà incalculer anun exampletotal, you have to have the total column first because it must be calculated before the individual percentage calculations
* Session variables are set for the duration of the thread.
* In the vast majority of cases you'd use a programming language to do this sort of thing.