No, you cannot use wildcards in a BETWEEN clause. But you can use the minimum / maximum possible value for the type, and this will provide the same effect.
For example, if you have a column of type BIGINT (signed), you can use 9223372036854775807 as the upper limit, because this is the highest value possible for this data type.
WHERE x BETWEEN 100 AND 9223372036854775807
The limits for integer values ββare listed here .
Another obvious solution is to use >= or <= instead of BETWEEN when one of the ends is unbounded. But, as you said, this requires a request change.
WHERE x >= 100
There are also ways to avoid modifying the query with a more complex query and providing NULL if you mean unlimited.
WHERE (x >= @lowerbound OR @lowerbound IS NULL) AND (x <= @upperbound OR @upperbound IS NULL)
source share