Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select expression for both VFP and SQL DB
Message
From
29/03/2019 13:10:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01667660
Message ID:
01667720
Views:
35
>'true' and 'false' are literal values for bit but it only works when comparing to bit

The real shortcoming of bit values in TSQL is that you can't use them in expressions unless a part of comparison, i.e.
when a and b then 100 else when a and not b then 50 ...
doesn't work, a and b, bit fields, are not recognised as boolean values in a logical expression, you have to put it as
when a=1 and b=1 then 100 else when a=1 and  b=0 then 50 ...

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform