Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use this in select - SQL
Message
De
30/03/2006 13:31:07
 
 
À
30/03/2006 13:27:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01108273
Message ID:
01109284
Vues:
29
>>>>IF USED('myTable')
>>>> SELECT ('myTable')
>>>>ELSE
>>>> SELECT 0
>>>>ENDIF
>>>>USE myTable
>>>
>>>
>>>USE myTable IN IIF(USED('myTable'), 'myTable', 0)
>>>
>>
>>Even simpler
>>USE myTable IN select('myTable')
>
>Even simpler :)
>
>
>USE myTable IN myTable
>
>
>But more dangerous if somthing is open in current workarea.

My version is always safe, unless mytable is used alias something other than mytable.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform