メインコンテンツまでスキップ

url_encode

URL_ENCODE

説明

エンコードされたURL文字列に変換します。

構文

url_encode(str)

パラメータ

  • str:エンコードする文字列。str が文字列型でない場合、暗黙的なキャストを試みます。

戻り値

エンコードされた文字列を返します。

mysql> select url_encode('https://docs.starrocks.io/en-us/latest/quick_start/Deploy');
+-------------------------------------------------------------------------+
| url_encode('https://docs.starrocks.io/en-us/latest/quick_start/Deploy') |
+-------------------------------------------------------------------------+
| https%3A%2F%2Fdocs.starrocks.io%2Fen-us%2Flatest%2Fquick_start%2FDeploy |
+-------------------------------------------------------------------------+