Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a local view with whatever SQL statement?
Message
De
30/09/1998 13:00:49
 
 
À
30/09/1998 12:46:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00142471
Message ID:
00142477
Vues:
34
Hi Puri ---

Yes. Open the database and create the view in code.
OPEN DATABASE mydbc
CREATE VIEW myview AS ;
   SELECT * FROM mytable ORDER BY name
Use DBSETPROP("myview","VIEW",{property},{setting}) to modify view settings such as updateable, etc.



>Hi,
> I don't really know whether there is a way of doing this, I want to create a view without using the View Wizard with an SQL statement that I type. From the view wizard, I can see the equivalent SQL statement, but I couldn't edit it. Is there any way of doing this?
>And this view may have parameters and it will be included in DE of a form. I basically want to avoid writing SQL queries(the cursors) in the code and want to keep them in a view.
>
>Please help.
>
>Thanks
>Puri
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform