Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is equivalent of .T. in SQL Server?
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01040713
Message ID:
01040715
Vues:
9
>
>Can you just remove WHERE clause alltogheter in that case?
>
>
* All records
>cDilter = " 1=1"
>* No records - empty cursor
>cDilter = " 1=2"
>
Yes, I can remove the WHERE, I guess. And I did try something like you suggested 1=1 but I thought it was, kind of, kludgy. But I guess this is the only way. I wonder if there is a huge performance hit of 1=1 vs removing the WHERE all together.

Thank you for your help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform