Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote view systax
Message
De
12/11/1999 20:21:36
 
 
À
12/11/1999 19:50:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00290842
Message ID:
00290849
Vues:
25
>I'm converting a vfp local view to a reomte view against SQL Server 7, but I'm choking on some the VFP syntax:
>
>SELECT Doners.cid, Doners.firstname, Doners.lastname, Doners.city,;
> Doners.state, Doners.zip,;
> ALLTRIM(Doners.firstname)+SPACE(1)+;
> IIF(.NOT.EMPTY(Doners.middle),middle+"."+SPACE(1),"")+ ;
> ALLTRIM(Doners.lastname)+SPACE(1)+ALLTRIM(suffix) AS name ;
> FROM basie!doners;
> WHERE UPPER(Doners.firstname) LIKE UPPER(?vp_firstname);
> AND UPPER(Doners.lastname) LIKE UPPER(?vp_lastname);
> AND UPPER(Doners.city) LIKE UPPER(?vp_city);
> AND Doners.state LIKE ?vp_state;
> AND Doners.zip LIKE ?vp_zip;
> ORDER BY Doners.lastname, Doners.firstname
>
>The alltrim in easy, but I don't have a clue how to convert the IIF statements in my SQL. Any ideas?

It's called CASE statement in SQL-Server.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform