Celeron.JB
1st February 2011, 15:37
Hello!
Please, sorry for my English:)
May I use variables inside the SQL query?
I want to change sort order on runtime.
select tisfc001.pdno(1;4):sndr,
tisfc001.pdno,
tisfc001.cwar,
tisfc001.mitm,
tcibd001.dsca
from tisfc001 inner join tcibd001 on tcibd001.item = tisfc001.mitm
order by 1, tisfc001.cwar, 4
Depending on the options on the form I want to change the sort order of the latter, for example at 5 (tcibd001.dsca), may I use a variable there, or is it not possible at all?
Should get something like... order by 1, tisfc001.cwar, var
But this construction is not compile
Thanks
Please, sorry for my English:)
May I use variables inside the SQL query?
I want to change sort order on runtime.
select tisfc001.pdno(1;4):sndr,
tisfc001.pdno,
tisfc001.cwar,
tisfc001.mitm,
tcibd001.dsca
from tisfc001 inner join tcibd001 on tcibd001.item = tisfc001.mitm
order by 1, tisfc001.cwar, 4
Depending on the options on the form I want to change the sort order of the latter, for example at 5 (tcibd001.dsca), may I use a variable there, or is it not possible at all?
Should get something like... order by 1, tisfc001.cwar, var
But this construction is not compile
Thanks