From 90a0ab5519f112277221c6bfa5dc4df7b0c31bda Mon Sep 17 00:00:00 2001 From: bb7133 Date: Mon, 25 May 2020 17:28:32 +0800 Subject: [PATCH] add & update several sql statements (#3296) --- TOC.md | 1 + media/sqlgram/ShowBuiltinsStmt.png | Bin 0 -> 3116 bytes media/sqlgram/ShowEnginesStmt.png | Bin 0 -> 3128 bytes media/sqlgram/ShowErrorsStmt.png | Bin 0 -> 3318 bytes sql-statements/sql-statement-show-builtins.md | 303 ++++++++++++++++++ sql-statements/sql-statement-show-engines.md | 6 +- sql-statements/sql-statement-show-errors.md | 8 +- 7 files changed, 311 insertions(+), 7 deletions(-) create mode 100644 media/sqlgram/ShowBuiltinsStmt.png create mode 100644 media/sqlgram/ShowEnginesStmt.png create mode 100644 media/sqlgram/ShowErrorsStmt.png create mode 100644 sql-statements/sql-statement-show-builtins.md diff --git a/TOC.md b/TOC.md index f99c3038f825..01bb13b2ead2 100644 --- a/TOC.md +++ b/TOC.md @@ -293,6 +293,7 @@ - [`SET PASSWORD`](/sql-statements/sql-statement-set-password.md) - [`SET TRANSACTION`](/sql-statements/sql-statement-set-transaction.md) - [`SET [GLOBAL|SESSION] `](/sql-statements/sql-statement-set-variable.md) + - [`SHOW BUILTINS`](/sql-statements/sql-statement-show-builtins.md) - [`SHOW CHARACTER SET`](/sql-statements/sql-statement-show-character-set.md) - [`SHOW COLLATION`](/sql-statements/sql-statement-show-collation.md) - [`SHOW [FULL] COLUMNS FROM`](/sql-statements/sql-statement-show-columns-from.md) diff --git a/media/sqlgram/ShowBuiltinsStmt.png b/media/sqlgram/ShowBuiltinsStmt.png new file mode 100644 index 0000000000000000000000000000000000000000..9943067ab3497f87cccead45ca9c3cbfa6904845 GIT binary patch literal 3116 zcmV+{4Ab+8P)004R> z004l5008;`004mK004C`008P>0026e000+ooVrmw00004XF*Lt006O$eEU(800001 zb5ch_0Itp)=>Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01m_e01m_fl`9S#000Yv zNklHfR_?t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W3WqAsC>7s<_HqK;B;IMaJ9^}x@G2gT3@F?-%Z{#>k_ zad`zo;_`lZF+}Q2#fAbzVGfcF1ARsKPY2*~MKJ?0=97uMlc~&|Oh{xA2;)b{X#Tos z{lDpq_-Zj_CS1RInL5IM5P@JZ3;7%Ki6E=HA zHTl}>`#gLw7&d;piiY?&3l|g=&^#OAS}~hyyhx&Y{KuKwxdafwEvrd%yx54mPpT4; zy5pLFUDs~l(9@C5aJX>BaPt@qOX?UlV7Y$#o>2IX7z}4D?zs-mXec!0{15v;qhbXU zF>nxl#RvLHT=?RNeUDy^QU%i#lsV;Q{_0}mc$>f2kLIiBXmB>-iXh5ZNOEWtFNT1B zTQCRy^TS>m+O;Luhwk4)OY{ijZ=9z$_%2ydWtLRer_{xjK7QeB!sYH5r3`cP(0rCw zi}7EvZ(2>FV=AY~n!`bL$LkaJ{P#>;t!1%8%v?4Z}w{4!>O1Wi}#*T@N75FqT{&iYx zt<5dYKJ}k}ofcb8PR^R6$BzBKtgOta44s{w18He|F$;e* z^qRn@{`0TXVoOapE@xRt!XMByCipF14hn^$;uD+C02?pxssH@zwAc_&b8@_Q2krU& zrjg_td-nxHdU^);@g50ddI1a30-xIBpJhac8uL47?dOGEFQN?=UqrHIYjC z!w}hEc;9uPUjB#;KF7iGGFH7X8L!L{ctbmq{K~f=Lw;P~(=hqhX|W+JI!lIuhzTd$ zh!_T%8`v1QM?#lal8}!ghMv_JhBk0Mb)J8n3nQzCK&Ix_hZ#of03z0$0VcJ=8MM+* z`{HvP=6_`43R$DN3w#%OCGV-xMS(@pgwef-J zHCkR~A^O*hOQ!@rwZlJF9rM!?FMOV07*qoM6N<$f_bo1 A$^ZZW literal 0 HcmV?d00001 diff --git a/sql-statements/sql-statement-show-builtins.md b/sql-statements/sql-statement-show-builtins.md new file mode 100644 index 000000000000..c54f1b9dd982 --- /dev/null +++ b/sql-statements/sql-statement-show-builtins.md @@ -0,0 +1,303 @@ +--- +title: SHOW BUILTINS +summary: TiDB 数据库中 SHOW BUILTINS 的使用概况。 +category: reference +--- + +# SHOW BUILTINS + +`SHOW BUILTINS` 语句用于列出 TiDB 中所有的内置函数。 + +## 语法图 + +**ShowBuiltinsStmt:** + +![ShowBuiltinsStmt](/media/sqlgram/ShowBuiltinsStmt.png) + +## 示例 + +{{< copyable "sql" >}} + +```sql +SHOW BUILTINS; +``` + +``` ++-----------------------------+ +| Supported_builtin_functions | ++-----------------------------+ +| abs | +| acos | +| adddate | +| addtime | +| aes_decrypt | +| aes_encrypt | +| and | +| any_value | +| ascii | +| asin | +| atan | +| atan2 | +| benchmark | +| bin | +| bit_count | +| bit_length | +| bitand | +| bitneg | +| bitor | +| bitxor | +| case | +| ceil | +| ceiling | +| char_func | +| char_length | +| character_length | +| charset | +| coalesce | +| coercibility | +| collation | +| compress | +| concat | +| concat_ws | +| connection_id | +| conv | +| convert | +| convert_tz | +| cos | +| cot | +| crc32 | +| curdate | +| current_date | +| current_role | +| current_time | +| current_timestamp | +| current_user | +| curtime | +| database | +| date | +| date_add | +| date_format | +| date_sub | +| datediff | +| day | +| dayname | +| dayofmonth | +| dayofweek | +| dayofyear | +| decode | +| default_func | +| degrees | +| des_decrypt | +| des_encrypt | +| div | +| elt | +| encode | +| encrypt | +| eq | +| exp | +| export_set | +| extract | +| field | +| find_in_set | +| floor | +| format | +| format_bytes | +| format_nano_time | +| found_rows | +| from_base64 | +| from_days | +| from_unixtime | +| ge | +| get_format | +| get_lock | +| getparam | +| getvar | +| greatest | +| gt | +| hex | +| hour | +| if | +| ifnull | +| in | +| inet6_aton | +| inet6_ntoa | +| inet_aton | +| inet_ntoa | +| insert_func | +| instr | +| intdiv | +| interval | +| is_free_lock | +| is_ipv4 | +| is_ipv4_compat | +| is_ipv4_mapped | +| is_ipv6 | +| is_used_lock | +| isfalse | +| isnull | +| istrue | +| json_array | +| json_array_append | +| json_array_insert | +| json_contains | +| json_contains_path | +| json_depth | +| json_extract | +| json_insert | +| json_keys | +| json_length | +| json_merge | +| json_merge_patch | +| json_merge_preserve | +| json_object | +| json_pretty | +| json_quote | +| json_remove | +| json_replace | +| json_search | +| json_set | +| json_storage_size | +| json_type | +| json_unquote | +| json_valid | +| last_day | +| last_insert_id | +| lastval | +| lcase | +| le | +| least | +| left | +| leftshift | +| length | +| like | +| ln | +| load_file | +| localtime | +| localtimestamp | +| locate | +| log | +| log10 | +| log2 | +| lower | +| lpad | +| lt | +| ltrim | +| make_set | +| makedate | +| maketime | +| master_pos_wait | +| md5 | +| microsecond | +| mid | +| minus | +| minute | +| mod | +| month | +| monthname | +| mul | +| name_const | +| ne | +| nextval | +| not | +| now | +| nulleq | +| oct | +| octet_length | +| old_password | +| or | +| ord | +| password_func | +| period_add | +| period_diff | +| pi | +| plus | +| position | +| pow | +| power | +| quarter | +| quote | +| radians | +| rand | +| random_bytes | +| regexp | +| release_all_locks | +| release_lock | +| repeat | +| replace | +| reverse | +| right | +| rightshift | +| round | +| row_count | +| rpad | +| rtrim | +| schema | +| sec_to_time | +| second | +| session_user | +| setval | +| setvar | +| sha | +| sha1 | +| sha2 | +| sign | +| sin | +| sleep | +| space | +| sqrt | +| str_to_date | +| strcmp | +| subdate | +| substr | +| substring | +| substring_index | +| subtime | +| sysdate | +| system_user | +| tan | +| tidb_decode_key | +| tidb_decode_plan | +| tidb_is_ddl_owner | +| tidb_parse_tso | +| tidb_version | +| time | +| time_format | +| time_to_sec | +| timediff | +| timestamp | +| timestampadd | +| timestampdiff | +| to_base64 | +| to_days | +| to_seconds | +| trim | +| truncate | +| ucase | +| unaryminus | +| uncompress | +| uncompressed_length | +| unhex | +| unix_timestamp | +| upper | +| user | +| utc_date | +| utc_time | +| utc_timestamp | +| uuid | +| uuid_short | +| validate_password_strength | +| version | +| week | +| weekday | +| weekofyear | +| weight_string | +| xor | +| year | +| yearweek | ++-----------------------------+ +268 rows in set (0.00 sec) +``` + +## MySQL 兼容性 + +`SHOW BUILTINS` 是 TiDB 新增语法,MySQL 中无此语法。 diff --git a/sql-statements/sql-statement-show-engines.md b/sql-statements/sql-statement-show-engines.md index 20f3fa049064..b2d3eaee9c85 100644 --- a/sql-statements/sql-statement-show-engines.md +++ b/sql-statements/sql-statement-show-engines.md @@ -7,10 +7,14 @@ aliases: ['/docs-cn/dev/reference/sql/statements/show-engines/'] # SHOW ENGINES -`SHOW ENGINES` 语句仅提供 MySQL 兼容性。 +`SHOW ENGINES` 语句用于列出所有支持的存储引擎,该语法仅提供 MySQL 兼容性。 ## 语法图 +**ShowEnginesStmt:** + +![ShowEnginesStmt](/media/sqlgram/ShowEnginesStmt.png) + ```sql SHOW ENGINES; ``` diff --git a/sql-statements/sql-statement-show-errors.md b/sql-statements/sql-statement-show-errors.md index 501a7bad3987..b85e9025460c 100644 --- a/sql-statements/sql-statement-show-errors.md +++ b/sql-statements/sql-statement-show-errors.md @@ -13,13 +13,9 @@ aliases: ['/docs-cn/dev/reference/sql/statements/show-errors/'] ## 语法图 -**ShowStmt:** +**ShowErrorsStmt:** -![ShowStmt](/media/sqlgram/ShowStmt.png) - -**ShowTargetFilterable:** - -![ShowTargetFilterable](/media/sqlgram/ShowTargetFilterable.png) +![ShowErrorsStmt](/media/sqlgram/ShowErrorsStmt.png) ## 示例