SHOW FUNCTIONS

SHOW FUNCTIONS

Synopsis:

  1. SHOW FUNCTIONS [LIKE pattern]?

SQL match pattern

Description: List all the SQL functions and their type. The LIKE clause can be used to restrict the list of names to the given pattern.

  1. SHOW FUNCTIONS;
  2. name | type
  3. -----------------+---------------
  4. AVG |AGGREGATE
  5. COUNT |AGGREGATE
  6. FIRST |AGGREGATE
  7. FIRST_VALUE |AGGREGATE
  8. LAST |AGGREGATE
  9. LAST_VALUE |AGGREGATE
  10. MAX |AGGREGATE
  11. MIN |AGGREGATE
  12. SUM |AGGREGATE
  13. KURTOSIS |AGGREGATE
  14. MAD |AGGREGATE
  15. PERCENTILE |AGGREGATE
  16. PERCENTILE_RANK |AGGREGATE
  17. SKEWNESS |AGGREGATE
  18. STDDEV_POP |AGGREGATE
  19. STDDEV_SAMP |AGGREGATE
  20. SUM_OF_SQUARES |AGGREGATE
  21. VAR_POP |AGGREGATE
  22. VAR_SAMP |AGGREGATE
  23. HISTOGRAM |GROUPING
  24. CASE |CONDITIONAL
  25. COALESCE |CONDITIONAL
  26. GREATEST |CONDITIONAL
  27. IFNULL |CONDITIONAL
  28. IIF |CONDITIONAL
  29. ISNULL |CONDITIONAL
  30. LEAST |CONDITIONAL
  31. NULLIF |CONDITIONAL
  32. NVL |CONDITIONAL
  33. CURDATE |SCALAR
  34. CURRENT_DATE |SCALAR
  35. CURRENT_TIME |SCALAR
  36. CURRENT_TIMESTAMP|SCALAR
  37. CURTIME |SCALAR
  38. DATEADD |SCALAR
  39. DATEDIFF |SCALAR
  40. DATEPART |SCALAR
  41. DATETIME_FORMAT |SCALAR
  42. DATETIME_PARSE |SCALAR
  43. DATETRUNC |SCALAR
  44. DATE_ADD |SCALAR
  45. DATE_DIFF |SCALAR
  46. DATE_PARSE |SCALAR
  47. DATE_PART |SCALAR
  48. DATE_TRUNC |SCALAR
  49. DAY |SCALAR
  50. DAYNAME |SCALAR
  51. DAYOFMONTH |SCALAR
  52. DAYOFWEEK |SCALAR
  53. DAYOFYEAR |SCALAR
  54. DAY_NAME |SCALAR
  55. DAY_OF_MONTH |SCALAR
  56. DAY_OF_WEEK |SCALAR
  57. DAY_OF_YEAR |SCALAR
  58. DOM |SCALAR
  59. DOW |SCALAR
  60. DOY |SCALAR
  61. FORMAT |SCALAR
  62. HOUR |SCALAR
  63. HOUR_OF_DAY |SCALAR
  64. IDOW |SCALAR
  65. ISODAYOFWEEK |SCALAR
  66. ISODOW |SCALAR
  67. ISOWEEK |SCALAR
  68. ISOWEEKOFYEAR |SCALAR
  69. ISO_DAY_OF_WEEK |SCALAR
  70. ISO_WEEK_OF_YEAR |SCALAR
  71. IW |SCALAR
  72. IWOY |SCALAR
  73. MINUTE |SCALAR
  74. MINUTE_OF_DAY |SCALAR
  75. MINUTE_OF_HOUR |SCALAR
  76. MONTH |SCALAR
  77. MONTHNAME |SCALAR
  78. MONTH_NAME |SCALAR
  79. MONTH_OF_YEAR |SCALAR
  80. NOW |SCALAR
  81. QUARTER |SCALAR
  82. SECOND |SCALAR
  83. SECOND_OF_MINUTE |SCALAR
  84. TIMESTAMPADD |SCALAR
  85. TIMESTAMPDIFF |SCALAR
  86. TIMESTAMP_ADD |SCALAR
  87. TIMESTAMP_DIFF |SCALAR
  88. TIME_PARSE |SCALAR
  89. TODAY |SCALAR
  90. TO_CHAR |SCALAR
  91. WEEK |SCALAR
  92. WEEK_OF_YEAR |SCALAR
  93. YEAR |SCALAR
  94. ABS |SCALAR
  95. ACOS |SCALAR
  96. ASIN |SCALAR
  97. ATAN |SCALAR
  98. ATAN2 |SCALAR
  99. CBRT |SCALAR
  100. CEIL |SCALAR
  101. CEILING |SCALAR
  102. COS |SCALAR
  103. COSH |SCALAR
  104. COT |SCALAR
  105. DEGREES |SCALAR
  106. E |SCALAR
  107. EXP |SCALAR
  108. EXPM1 |SCALAR
  109. FLOOR |SCALAR
  110. LOG |SCALAR
  111. LOG10 |SCALAR
  112. MOD |SCALAR
  113. PI |SCALAR
  114. POWER |SCALAR
  115. RADIANS |SCALAR
  116. RAND |SCALAR
  117. RANDOM |SCALAR
  118. ROUND |SCALAR
  119. SIGN |SCALAR
  120. SIGNUM |SCALAR
  121. SIN |SCALAR
  122. SINH |SCALAR
  123. SQRT |SCALAR
  124. TAN |SCALAR
  125. TRUNC |SCALAR
  126. TRUNCATE |SCALAR
  127. ASCII |SCALAR
  128. BIT_LENGTH |SCALAR
  129. CHAR |SCALAR
  130. CHARACTER_LENGTH |SCALAR
  131. CHAR_LENGTH |SCALAR
  132. CONCAT |SCALAR
  133. INSERT |SCALAR
  134. LCASE |SCALAR
  135. LEFT |SCALAR
  136. LENGTH |SCALAR
  137. LOCATE |SCALAR
  138. LTRIM |SCALAR
  139. OCTET_LENGTH |SCALAR
  140. POSITION |SCALAR
  141. REPEAT |SCALAR
  142. REPLACE |SCALAR
  143. RIGHT |SCALAR
  144. RTRIM |SCALAR
  145. SPACE |SCALAR
  146. STARTS_WITH |SCALAR
  147. SUBSTRING |SCALAR
  148. TRIM |SCALAR
  149. UCASE |SCALAR
  150. CAST |SCALAR
  151. CONVERT |SCALAR
  152. DATABASE |SCALAR
  153. USER |SCALAR
  154. ST_ASTEXT |SCALAR
  155. ST_ASWKT |SCALAR
  156. ST_DISTANCE |SCALAR
  157. ST_GEOMETRYTYPE |SCALAR
  158. ST_GEOMFROMTEXT |SCALAR
  159. ST_WKTTOSQL |SCALAR
  160. ST_X |SCALAR
  161. ST_Y |SCALAR
  162. ST_Z |SCALAR
  163. SCORE |SCORE

The list of functions returned can be customized based on the pattern.

It can be an exact match:

  1. SHOW FUNCTIONS LIKE 'ABS';
  2. name | type
  3. ---------------+---------------
  4. ABS |SCALAR

A wildcard for exactly one character:

  1. SHOW FUNCTIONS LIKE 'A__';
  2. name | type
  3. ---------------+---------------
  4. AVG |AGGREGATE
  5. ABS |SCALAR

A wildcard matching zero or more characters:

  1. SHOW FUNCTIONS LIKE 'A%';
  2. name | type
  3. ---------------+---------------
  4. AVG |AGGREGATE
  5. ABS |SCALAR
  6. ACOS |SCALAR
  7. ASIN |SCALAR
  8. ATAN |SCALAR
  9. ATAN2 |SCALAR
  10. ASCII |SCALAR

Or of course, a variation of the above:

  1. SHOW FUNCTIONS LIKE '%DAY%';
  2. name | type
  3. ---------------+---------------
  4. DAY |SCALAR
  5. DAYNAME |SCALAR
  6. DAYOFMONTH |SCALAR
  7. DAYOFWEEK |SCALAR
  8. DAYOFYEAR |SCALAR
  9. DAY_NAME |SCALAR
  10. DAY_OF_MONTH |SCALAR
  11. DAY_OF_WEEK |SCALAR
  12. DAY_OF_YEAR |SCALAR
  13. HOUR_OF_DAY |SCALAR
  14. ISODAYOFWEEK |SCALAR
  15. ISO_DAY_OF_WEEK|SCALAR
  16. MINUTE_OF_DAY |SCALAR
  17. TODAY |SCALAR