I have a table named b having a column j which is varchar(3) where I have stored values like
j
----
a
b
c
aa
ab
ac
when I write the statement like this
select * from b where j>"aa";
it shows
j
----
b
c
ab
ac
why is it so …I thought it would show values upper than ‘aa’ which should ommit the values ‘aa’,’a’,’b’ and ‘c’ but it only ommits the value ‘a’ and ‘aa’ …why is it so ?
I want to know how it is checks the values when I use multi characters
This works by lexicographical order. Like what you would find in a dictionary.
In a dictionary, first you compare the first letter and then get to the next letter.