is it possible to select EXISTS directly as a bit?

后端 未结 9 1130
轻奢々
轻奢々 2020-12-02 09:09

I was wondering if it\'s possible to do something like this (which doesn\'t work):

select cast( (exists(select * from theTable where theColumn like \'theValue

9条回答
  •  抹茶落季
    2020-12-02 09:28

    No it isn't possible. The bit data type is not a boolean data type. It is an integer data type that can be 0,1, or NULL.

提交回复
热议问题