有人可以解释以下矛盾吗?
select 'b.0'<'b00.0';
?column?
----------
t
但
select 'b.g'<'b00.g';
?column?
----------
f
答案 0 :(得分:2)
那是collation issue。尝试
select '.0' < '00', '.9' < '00', '.9' < '00' collate "C";
?column? | ?column? | ?column?
----------+----------+----------
t | f | t