Answer the question
In order to leave comments, you need to log in
How much like with a percentage at the end is equivalent to between?
LC_COLLATE='ru_RU.UTF8' To what
extent are these two queries equivalent (assume that the code column does not contain characters with a code greater than \uFFFF)?
select * from t where code like '12345%';
select * from t where code BETWEEN '12345' AND '12345' || '\uFFFF'
Answer the question
In order to leave comments, you need to log in
If the idea is implemented correctly, then they are equivalent. Must be. Yours is not equivalent yet, because
melkij=> select '\uFFFF';
?column?
----------
\uFFFF
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question