Created
May 8, 2018 20:46
-
-
Save shermaza/11d2bb875a087185076d3bad5312c263 to your computer and use it in GitHub Desktop.
List all tables in a schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SET @schema_name = 'magento'; | |
| SELECT TABLE_NAME | |
| FROM INFORMATION_SCHEMA.TABLES | |
| WHERE TABLE_TYPE='BASE TABLE' | |
| AND TABLE_SCHEMA=@schema_name; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In this case, the schema name is 'magento'