I guess I can do something like case when field then 1 else 0 end
. But is that the only way?
select cast(b as integer)
or
select convert (integer, b)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With