Hallo everyone,
is there a chance in SQL generally to define a variable with more than one values, like:
myVar = {29, 4564, 3}
I need this, because I have a column of type VARCHAR:
#35#1#4564#27#
And I would like to prove, whether one of the values in myVar exists. My idea for the checking is by using like:
But it showed up to be complexer as thought.
Thanks for the comments.
Regards,
Ratna:)
is there a chance in SQL generally to define a variable with more than one values, like:
myVar = {29, 4564, 3}
I need this, because I have a column of type VARCHAR:
#35#1#4564#27#
And I would like to prove, whether one of the values in myVar exists. My idea for the checking is by using like:
Code:
column_name like myVar
Thanks for the comments.
Regards,
Ratna:)