Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to auto close main table after sql cursor selected
Message
From
12/10/2016 09:49:43
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
12/10/2016 04:00:31
Hee Lim Wang
Fantasy Software Enterprise
Malaysia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01641843
Message ID:
01641854
Views:
49
>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]
Previous
Reply
Map
View

Click here to load this message in the networking platform