Sql wildcards

Author
Discussion

alunr

Original Poster:

1,674 posts

265 months

Monday 7th July 2003
quotequote all
My brain has gone blank and everywhere I've searched I get a duff result...

What is the numeric wildcard in SQL (eg testing against a "number" field)

Thanks

pdV6

16,442 posts

262 months

Monday 7th July 2003
quotequote all
I think you're restricted to > < = !=
LIKE and wildcards are for character data

Don

28,377 posts

285 months

Monday 7th July 2003
quotequote all
Yep wildcards are for character data only...

You'll just have to express the numeric comparison against a list of numbers or a list of ranges....cheesy but it'll work.

alunr

Original Poster:

1,674 posts

265 months

Monday 7th July 2003
quotequote all
I think I might cry...

Thanks anyway!

anonymous-user

55 months

Tuesday 8th July 2003
quotequote all
This might be a bit late, but you could always cast the numeric to a character datatype and then use the wildcard characters available that way.

Darran