メインコンテンツまでスキップ
バージョン: Latest-3.4

SHOW SQLBLACKLIST

Description

SQL ブラックリストにある SQL 正規表現を表示します。

SQL ブラックリストの詳細については、Manage SQL Blacklist を参照してください。

ヒント

この操作には SYSTEM レベルの BLACKLIST 権限が必要です。この権限を付与するには、GRANT の指示に従ってください。

Syntax

SHOW SQLBLACKLIST

Return value

ReturnDescription
Indexブラックリストに追加された SQL 正規表現のインデックス番号です。
Forbidden SQLブラックリストに追加された SQL 正規表現です。

Examples

mysql> SHOW SQLBLACKLIST;
+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Index | Forbidden SQL |
+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 1 | select count\(\*\) from .+ |
| 2 | select id_int \* 4, id_tinyint, id_varchar from test_all_type_nullable except select id_int, id_tinyint, id_varchar from test_basic except select \(id_int \* 9 \- 8\) \/ 2, id_tinyint, id_varchar from test_all_type_nullable2 except select id_int, id_tinyint, id_varchar from test_basic_nullable |
| 3 | select id_int from test_all_type_select1 order by id_int limit [1-7], [5-7] |
| 4 | select count\(distinct .+\) from .+ |
+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+