Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to auto close main table after sql cursor selected
Message
De
12/10/2016 09:49:43
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
12/10/2016 04:00:31
Hee Lim Wang
Fantasy Software Enterprise
Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01641843
Message ID:
01641854
Vues:
50
>select * from mytable into cursor tmp where.......
>but mytable.dbf still open after tmp cursor formed
>is there any way to close mytable automatically after selected ?
lcCursor = "mytable"
select Cur1.* from (lcCursor) AS Cur1 into cursor tmp where Cur1.Field1 # nn .......

USE IN SELECT(lcCursor)
So you simply need to use the alias Cur1 inside the SQL SELECT.

:)
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform