Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL FROM SQL
Message
De
21/01/2009 13:15:08
 
 
À
21/01/2009 12:32:15
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01375790
Message ID:
01375966
Vues:
10
>Probably I wasn't clear. Recno() has alias parameter and it works reliably under VFP9.
>Cetin
>
>>There's no way to specify from which table RECNO() will come from and no guaranty that it'll be correct. In general, the functions that can accept an alias as parameters are not guaranteed to work correctly when select involves more than one table. More details at http://www.berezniker.com/content/pages/visual-foxpro/queries-and-functions-which-accept-alias-parameter.
>>
>>>(at least under VFP9) recno() works perfectly well even with joins but it is deleted() that you shouldn't use with joined selects. Better do not use both for easy controlling of SQL. You didn't say what is your intention (or yuou did but I didn't get) so I don't have an idea what the SQL might look like. From the two SQLs I see I can't derive anything.

Sure, but the Alias is out of the SQL job, then it is a fixed value.
CLOSE TABLES ALL
CREATE CURSOR cetin ( a i)
APPEND BLANK
SKIP  && go recno=2

SELECT * FROM Cetin WHERE RECNO('Cetin')= 1 && not error but bad result

SELECT * FROM Cetin X WHERE RECNO('X') = 1 && error! Alias not found
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform