Rechercher dans le manuel MySQL
27.4.4.1 The create_synonym_db() Procedure
Given a schema name, this procedure creates a synonym schema
containing views that refer to all the tables and views in the
original schema. This can be used, for example, to create a
shorter name by which to refer to a schema with a long name
(such as info
rather than
INFORMATION_SCHEMA
).
Parameters
in_db_name VARCHAR(64)
: The name of the schema for which to create the synonym.in_synonym VARCHAR(64)
: The name to use for the synonym schema. This schema must not already exist.
- +--------------------+
- +--------------------+
- | information_schema |
- | mysql |
- | performance_schema |
- | sys |
- | world |
- +--------------------+
- +---------------------------------------+
- | summary |
- +---------------------------------------+
- +---------------------------------------+
- +--------------------+
- +--------------------+
- | information_schema |
- | info |
- | mysql |
- | performance_schema |
- | sys |
- | world |
- +--------------------+
- +---------------------------------------+------------+
- | Tables_in_info | Table_type |
- +---------------------------------------+------------+
- ...
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-sys-create-synonym-db.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
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.