Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I avoid 'SQL: Statement too long (Error 1812)'
Message
De
14/11/2003 08:56:06
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
14/11/2003 03:09:53
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
Divers
Thread ID:
00849187
Message ID:
00849840
Vues:
26
Thanks for the reply Cetin.

While this idea works for VFP (and SQL Server/Oracle) I'm trying to do this SQL selecting from within the MapObjects2 ActiveX control. If I'm not mistaken, you may know a bit about that control. In particular I'm trying to use the SearchByExpression() method. I don't think it can use joins.

Mike


>
>This ORing might be many and adds to complexity of SQL even if it could ran.
>When I need such things I simply create a cursor and put values there, make an inner join. ie:
>
>create cursor crsTemp (myField i)
>insert into crsTemp values (1234)
>insert into crsTemp values (29929)
>...
>
>select .... from myTable mt ;
>inner join crsTemp lst on val(mt.Myfield) = lst.myField ...
>
>Just my .02 cents
>Cetin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform