Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting field name based on tag name
Message
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 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01351504
Message ID:
01351548
Vues:
15
>>The second parameter is the CDX file name, not the alias of the table
>>
>>try
>>
>>
>>use myTable alias myAliasName in 0
>>? Sys(14, TagNo('myKeyName', Forceext(Dbf('myAliasName'), 'CDX'), 'myAliasName'))
>>
>
>Thanks again. KEY function seems to work, so I used it.
>
>Anyway, now two new questions.
>
>1. Do you see a problem with this statement
>
>
>SELECT TRANSFORM(&lcExprC) as ChildField, ;
>     lcParent as Parent_T, lcChild as Child_T, ;
>     lcExprP as Parent_E, lcExprC as Child_E ;
>     FROM (lcParent) ParentP ;
>     RIGHT JOIN (lcChild) Child ON ;
>     ParentP.&lcExprP = Child.&lcExprC ;
>     WHERE (ParentP.&lcExprP) IS NULL INTO CURSOR curOr nofilter
>
>Looks like it selecting a lot of records, while I would expect to have just few orphans.
>
>Also I'm doing these selects in a loop. Is there a way to gracefully interrupt it?
>
>Thanks again.

I see one:
TRANSFORM(&lcExprC)
that is a variable length field and if the first has the shortest value you will end up with that length :-)

Could you post the full select?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform