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_PART |SCALAR
  47. DATE_TRUNC |SCALAR
  48. DAY |SCALAR
  49. DAYNAME |SCALAR
  50. DAYOFMONTH |SCALAR
  51. DAYOFWEEK |SCALAR
  52. DAYOFYEAR |SCALAR
  53. DAY_NAME |SCALAR
  54. DAY_OF_MONTH |SCALAR
  55. DAY_OF_WEEK |SCALAR
  56. DAY_OF_YEAR |SCALAR
  57. DOM |SCALAR
  58. DOW |SCALAR
  59. DOY |SCALAR
  60. HOUR |SCALAR
  61. HOUR_OF_DAY |SCALAR
  62. IDOW |SCALAR
  63. ISODAYOFWEEK |SCALAR
  64. ISODOW |SCALAR
  65. ISOWEEK |SCALAR
  66. ISOWEEKOFYEAR |SCALAR
  67. ISO_DAY_OF_WEEK |SCALAR
  68. ISO_WEEK_OF_YEAR |SCALAR
  69. IW |SCALAR
  70. IWOY |SCALAR
  71. MINUTE |SCALAR
  72. MINUTE_OF_DAY |SCALAR
  73. MINUTE_OF_HOUR |SCALAR
  74. MONTH |SCALAR
  75. MONTHNAME |SCALAR
  76. MONTH_NAME |SCALAR
  77. MONTH_OF_YEAR |SCALAR
  78. NOW |SCALAR
  79. QUARTER |SCALAR
  80. SECOND |SCALAR
  81. SECOND_OF_MINUTE |SCALAR
  82. TIMESTAMPADD |SCALAR
  83. TIMESTAMPDIFF |SCALAR
  84. TIMESTAMP_ADD |SCALAR
  85. TIMESTAMP_DIFF |SCALAR
  86. TIME_PARSE |SCALAR
  87. TODAY |SCALAR
  88. WEEK |SCALAR
  89. WEEK_OF_YEAR |SCALAR
  90. YEAR |SCALAR
  91. ABS |SCALAR
  92. ACOS |SCALAR
  93. ASIN |SCALAR
  94. ATAN |SCALAR
  95. ATAN2 |SCALAR
  96. CBRT |SCALAR
  97. CEIL |SCALAR
  98. CEILING |SCALAR
  99. COS |SCALAR
  100. COSH |SCALAR
  101. COT |SCALAR
  102. DEGREES |SCALAR
  103. E |SCALAR
  104. EXP |SCALAR
  105. EXPM1 |SCALAR
  106. FLOOR |SCALAR
  107. LOG |SCALAR
  108. LOG10 |SCALAR
  109. MOD |SCALAR
  110. PI |SCALAR
  111. POWER |SCALAR
  112. RADIANS |SCALAR
  113. RAND |SCALAR
  114. RANDOM |SCALAR
  115. ROUND |SCALAR
  116. SIGN |SCALAR
  117. SIGNUM |SCALAR
  118. SIN |SCALAR
  119. SINH |SCALAR
  120. SQRT |SCALAR
  121. TAN |SCALAR
  122. TRUNC |SCALAR
  123. TRUNCATE |SCALAR
  124. ASCII |SCALAR
  125. BIT_LENGTH |SCALAR
  126. CHAR |SCALAR
  127. CHARACTER_LENGTH |SCALAR
  128. CHAR_LENGTH |SCALAR
  129. CONCAT |SCALAR
  130. INSERT |SCALAR
  131. LCASE |SCALAR
  132. LEFT |SCALAR
  133. LENGTH |SCALAR
  134. LOCATE |SCALAR
  135. LTRIM |SCALAR
  136. OCTET_LENGTH |SCALAR
  137. POSITION |SCALAR
  138. REPEAT |SCALAR
  139. REPLACE |SCALAR
  140. RIGHT |SCALAR
  141. RTRIM |SCALAR
  142. SPACE |SCALAR
  143. STARTS_WITH |SCALAR
  144. SUBSTRING |SCALAR
  145. TRIM |SCALAR
  146. UCASE |SCALAR
  147. CAST |SCALAR
  148. CONVERT |SCALAR
  149. DATABASE |SCALAR
  150. USER |SCALAR
  151. ST_ASTEXT |SCALAR
  152. ST_ASWKT |SCALAR
  153. ST_DISTANCE |SCALAR
  154. ST_GEOMETRYTYPE |SCALAR
  155. ST_GEOMFROMTEXT |SCALAR
  156. ST_WKTTOSQL |SCALAR
  157. ST_X |SCALAR
  158. ST_Y |SCALAR
  159. ST_Z |SCALAR
  160. 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