Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized view for no parameter?
Message
 
 
À
17/02/2004 10:10:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00877929
Message ID:
00878098
Vues:
23
>I've got a couple parameterized views that could be reused without the parameter (for reporting purposes). Is it better to create a separate view without the parameter, or is it possible to massage the parameter somehow?
>
>Select * from customer where custid = ?vp_custid
>
>There's another view where the parameter is from a second table, how would I do that?
>
>Select * from customer inner join address on customer.addressid = address.addressid where address.country = ?vp_country
* Set m.vp_custid = "" to select all rows: 
SELECT * ;
  from customer ;
  where ?vp_custid IN ( custid, "" )
* To 
- Andy Rice
San Diego, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform