Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I cannot seem to do a SQL Select with a where clause
Message
De
13/12/1999 05:24:33
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00301982
Message ID:
00302612
Vues:
20
Donald,

>SQLEexec(nHandle, [select ContHist.RecID from ContHist where (((ContHist.ResultCode)="EXP" .or. (ContHist.ResultCode)="BXP"))], 'ThisCursor')

Take the dots away from the or i.e.

SQLEexec(nHandle, [select ContHist.RecID from ContHist where (((ContHist.ResultCode)="EXP" or (ContHist.ResultCode)="BXP"))], 'ThisCursor')

SQL does not use dots around OR, AND etc.

Cheers
Steve Lea
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform