Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql Server to Visual FoxPro
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01502416
Message ID:
01502430
Vues:
50
Consider this:
CREATE TABLE Test (Test c(10))
INSERT INTO test VALUES ("1")
INSERT INTO test VALUES ("2")
SELECT ICase(Test="1","1","22") FROM Test
so better would be in my opinion:
SELECT cast(icase(test="1","1","22") as character(10)) FROM test
>Hey Guys.....
>
>From my boss....
>
>
>"Can either of you tell me what the syntax is to do a CASE statement in a db lookup, for a fox pro db.
>
>This is what it would look like for sql server:
>
>SELECT ‘Sale Type’ = CASE intSaletype WHEN 1 THEN ‘Sale’ WHEN 2 THEN ‘Return’ ELSE ‘Something else’ END
>FROM <table>
>"
>
>Any idea? I am not skilled mssql, so that's why I'm asking you gurus....
Christian Isberner
Software Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform