Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double ampersands causes problem
Message
 
To
31/07/2007 08:30:38
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01244817
Message ID:
01244830
Views:
9
>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"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform