Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL on Two Tables where All Fields Match
Message
De
05/07/2001 11:43:19
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
05/07/2001 11:13:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00526958
Message ID:
00527002
Vues:
34
>Hi,
>
>Sorry for the uncomplete message.
>
>You can loop all the fields in the table and generate a where staement.
>
>e.g
>
>FOR n = 1 to FCOUNT(TableB)
> cWhere = cWhere + 'TableB.' + FIELD(n) + '= TableA.' + FIELD(n)
>ENDFOR
>
>cStatement = 'SELECT B.* FROM TableB B, TableA A WHERE ' + cWhere
>
>&cStatement
>
>Wilson

Error: SQL statement too long.

I'm working with 200+ fields so the list of field names goes way over the 254 limit.

Looks like I'm going to need to do a scan between the tables? Any other ides before I go that route? Anyone?

Renoir
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform