salut comment mettre ORDER BY comme paramètre
SGBD: Firebird 2.5
voir l'exemple suivant:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 var variable:string; begin if ComboBox1.ItemIndex=0 then Variable:='Nom_Client' else if ComboBox1.ItemIndex=1 then Variable:='Prenom_Client'; with FDQuery1 do begin Close; SQL.Clear; SQL.Add(' SELECT * FROM clients'); SQL.Add(' ORDER BY :trier'); ParamByName('trier').value:=Variable; open; end; end;
Partager