在一些资料里认为 like 在不使用统配符的情况下与 = 等价,例如以下文档: ![image](../../../../../ff_internal_upload/img/2021/image-20211008153226583.png) 经验证,在pg13版本中,char类型不适应上述说法。 例子: ```sql test=# create table t1(a char(3)); CREATE TABLE test=# insert into t1(a) values ('xyz'), ('uv'); INSERT 0 2 test=# select * from t1 where d like 'uv'; a ---- (0 rows) test=# select * from t1 where d = 'uv'; a ---- uv (1 row) test=# select * from t1 where d like 'uv%'; a ---- uv (1 row) ```