Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
メールIDから母音を削除したい。どの機能を使用すればよいですか? translatepostgresql でとの違いを見つけようとしてreplaceいますが、正確な違いは得られませんでした
translate
replace
translate()単一文字のセット(文字列として渡される) を別の文字セット(これも文字列として渡される) に置き換えます。次に例を示します。
translate()
translate('abcdef', 'ace', 'XYZ') --> 'XbYdZf'
replace()出現する任意の長さの文字列を別の文字列に置き換えます:
replace()
replace('abcdef', 'bc', 'FOO') --> 'aFOOdef'