Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating views.
Message
 
À
16/05/2001 10:30:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00507816
Message ID:
00508180
Vues:
18
Just to add to Vlad's message, VFP will prompt you if it does NOT find the variable in a parameterized view, instead of crashing your app with an error. Parameterized views are extremely useful for linking child tables to parent tables - you just have a parameter on the foreign key in the child table.

HTH
Barbara

>Can you use variables when creating views?
>
>I am testing the creation of a view. When I hard code the parameter for the the field pendcds as below:
>
>create sql view tranhdr remote connection novtrans as SELECT * FROM tranhdr ;
> WHERE pendcds = 'w16' and repaired = 0 AND valerror = 0
>
>I have no problem, but when I pass a veriable, as below:
>
>lcPendcds = "w16"
>create sql view tranhdr remote connection novtrans as SELECT * FROM tranhdr ;
> WHERE pendcds = &lcPendcds and repaired = 0 AND valerror = 0
>
>I get an error stating that no filed named 'w16'.
>
>Question how to get around this?
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform