4

pg_trgmモジュールをインストールしました。

pg_trgm | 1.0     | extensions | text similarity measurement and index ...

スキーマ セットはextensions. それを使用するには、次のように選択する必要があります。

extensions.similarity('hello','hallo');

%演算子を使用してステートメントを実行しようとしましたが、次のメッセージが表示されました。

mydb=# select * from rssdata where description % 'Brazil';
ERROR:  operator does not exist: character varying % unknown
LINE 1: select * from rssdata where description % 'Brazil';
                                            ^
HINT:  No operator matches the given name and argument type(s).
You might need to add explicit type casts. 

%または<->オペレーターを実行するには何が必要ですか?

4

1 に答える 1