Rechercher dans le manuel MySQL

13.7.6 SHOW Syntax

SHOW has many forms that provide information about databases, tables, columns, or status information about the server. This section describes those following:

  1. SHOW {BINARY | MASTER} LOGS
  2. SHOW BINLOG EVENTS [IN 'log_name'] [FROM pos] [LIMIT [offset,] row_count]
  3. SHOW CHARACTER SET [like_or_where]
  4. SHOW COLLATION [like_or_where]
  5. SHOW [FULL] COLUMNS FROM tbl_name [FROM db_name] [like_or_where]
  6. SHOW CREATE EVENT event_name
  7. SHOW CREATE FUNCTION func_name
  8. SHOW CREATE TABLE tbl_name
  9. SHOW CREATE TRIGGER trigger_name
  10. SHOW CREATE VIEW view_name
  11. SHOW DATABASES [like_or_where]
  12. SHOW ENGINE engine_name {STATUS | MUTEX}
  13. SHOW [STORAGE] ENGINES
  14. SHOW EVENTS
  15. SHOW FUNCTION CODE func_name
  16. SHOW FUNCTION STATUS [like_or_where]
  17. SHOW GRANTS FOR user
  18. SHOW INDEX FROM tbl_name [FROM db_name]
  19. SHOW MASTER STATUS
  20. SHOW OPEN TABLES [FROM db_name] [like_or_where]
  21. SHOW PLUGINS
  22. SHOW PROCEDURE CODE proc_name
  23. SHOW PROCEDURE STATUS [like_or_where]
  24. SHOW [FULL] PROCESSLIST
  25. SHOW PROFILE [types] [FOR QUERY n] [OFFSET n] [LIMIT n]
  26. SHOW PROFILES
  27. SHOW RELAYLOG EVENTS [IN 'log_name'] [FROM pos] [LIMIT [offset,] row_count]
  28. SHOW SLAVE HOSTS
  29. SHOW SLAVE STATUS [FOR CHANNEL channel]
  30. SHOW [GLOBAL | SESSION] STATUS [like_or_where]
  31. SHOW TABLE STATUS [FROM db_name] [like_or_where]
  32. SHOW [FULL] TABLES [FROM db_name] [like_or_where]
  33. SHOW TRIGGERS [FROM db_name] [like_or_where]
  34. SHOW [GLOBAL | SESSION] VARIABLES [like_or_where]
  35.  
  36. like_or_where:
  37.     LIKE 'pattern'
  38.   | WHERE expr

If the syntax for a given SHOW statement includes a LIKE 'pattern' part, 'pattern' is a string that can contain the SQL % and _ wildcard characters. The pattern is useful for restricting statement output to matching values.

Several SHOW statements also accept a WHERE clause that provides more flexibility in specifying which rows to display. See Section 25.41, “Extensions to SHOW Statements”.

Many MySQL APIs (such as PHP) enable you to treat the result returned from a SHOW statement as you would a result set from a SELECT; see Chapter 28, Connectors and APIs, or your API documentation for more information. In addition, you can work in SQL with results from queries on tables in the INFORMATION_SCHEMA database, which you cannot easily do with results from SHOW statements. See Chapter 25, INFORMATION_SCHEMA Tables.


Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-show.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut