Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I make SQL Select ignore Left Join
Message
De
01/07/2005 17:18:02
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01028358
Message ID:
01028378
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>My title for this message is not very clear, I am sorry, I just could not define it in one line.
>
>In my SQL I have the following left join:
>
>
>left join &cParentAlias. on cPrefix + &cParenField. = &cChildField.
>
>
>But sometimes I have no need for this left join, that is, there is no cParentAlias and the rest. How can I make this Left Join to be ignored by SQL Select?
>
>Thank you.
if Something
text to m.lcLeftJoin textmerge noshow
 left join <<cParentAlias>> on <<cPrefix>><<cParenField>> = <<cChildField>>
endtext
else
 lcLeftJoin = ''
endif
select ..... &lcLeftJoin
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform