Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Variable with more than one value inside

$
0
0
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:
Code:

column_name like myVar
But it showed up to be complexer as thought.

Thanks for the comments.

Regards,

Ratna:)

Viewing all articles
Browse latest Browse all 13329

Trending Articles