Skip to content

Instantly share code, notes, and snippets.

@shermaza
Created May 8, 2018 20:46
Show Gist options
  • Select an option

  • Save shermaza/11d2bb875a087185076d3bad5312c263 to your computer and use it in GitHub Desktop.

Select an option

Save shermaza/11d2bb875a087185076d3bad5312c263 to your computer and use it in GitHub Desktop.
List all tables in a schema
SET @schema_name = 'magento';
SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE='BASE TABLE'
AND TABLE_SCHEMA=@schema_name;
@shermaza
Copy link
Author

shermaza commented May 8, 2018

In this case, the schema name is 'magento'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment