Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clausula WHERE em view remota
Message
From
03/05/2002 15:17:57
 
 
To
03/05/2002 13:05:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00652496
Message ID:
00652588
Views:
21
>Como faço para substituir o campo de filtragem na clausula WHERE em um view remota, coisa do tipo:
>
>select * from produtos where ?vcampo = ?vvalor
>
>Pois preciso fazer consultas diferenciada na mesma view.
>
>Marcelo Barros.

Olá Marcelo!

Se for apenas 2 opcões vc pode usar
where iif(x,y,z)
Se tiver mais de 2 opções faça o seguinte :
do case
   case variavel = flag1 
       filtro = "filtro1"
   case variavel = flag2 
       filtro = "filtro2"
endcase

select ... where &filtro
Atenciosamente,
Welington Lourenço Melo de Paula BH / MG
welingtonl@yahoo.com.br
Previous
Reply
Map
View

Click here to load this message in the networking platform