Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double ampersands causes problem
Message
 
À
31/07/2007 08:30:38
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 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01244817
Message ID:
01244830
Vues:
10
>My SQL was like this:
>
>
>SELECT Numero AS PrimaryKey,Session FROM Member WHERE UPPER(Username)="SOMETHING" AND UPPER(Password)="&&ETC       " ORDER BY 1
>
>
>But, this generates an error in VFP. The cause is the double ampersands. How can I adjust to support such a search in my SQL?

Michel,

Try:
SELECT Numero AS PrimaryKey,Session FROM Member WHERE UPPER(Username)="SOMETHING" AND UPPER(Password)=chr(38)+chr(38)+"ETC"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform