I’m writing the following statement to select names that starts with a range of characters.
select name from db.table where name like '[c-e]%';
The statement does not return anything to me. But when I change it to:
select name from db.table where name like 'c%';
It returns records.
What is the problem ?
@juergen d is right but a little change required as you want to check all the name starting from in range [c-d] so
“^” indicates that match when starting must match range [c-e]