0

I have a mysql statement that I cannot modify. I can only throw in data:

SELECT questionid FROM mytable WHERE tags = #

# can be any data (please don't mention sql injects etc.)

My recent problem: I want to select all questionids without restriction. So what do I have to specify for # to ignore the tags filter.

I have just tried the % wildcard but it does not work.

Thanks for helping me out this early morning...

Avatar
  • 14,622
  • 9
  • 119
  • 198

1 Answers1

0

It is not possible, because the where clause uses an equals sign.

Wildcards are only allowed at likestatements.

Jens
  • 67,715
  • 15
  • 98
  • 113