I have below test data:
I have a variable @var int = '5'
and I want to see if @var
exists in one of the 'data'
row in the table, I should report pid,true
. So is it possible to do
case when @var
in (data....) ? That is can I find @var
using 'in'
condition in the table data column?
Any help?!