Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 0be3be3

Browse files
committed
Added info for the create_synonym_db() procedure.
1 parent f75110d commit 0be3be3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

procedures/create_synonym_db.sql

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
/*
22
* Procedure: create_synonym_db()
33
*
4+
* Takes a source database name and synonym name, and then creates the
5+
* synonym database with views that point to all of the tables within
6+
* the source database.
7+
*
8+
* Useful for creating a "ps" synonym for "performance_schema" for example.
9+
*
410
* Parameters
511
* in_db_name: The database you would like to create a synonym for.
612
* in_synonym: The synonym you would like to create.
@@ -74,4 +80,4 @@ BEGIN
7480

7581
END$$
7682

77-
DELIMITER ;
83+
DELIMITER ;

0 commit comments

Comments
 (0)