To show all tables in the current MySQL database, you can use the following script:
SELECT table_schema,table_name FROM information_schema.tables WHERE table_type = 'BASE TABLE' AND table_schema = 'your_database’ AND table_schema not in ('information_schema','mysql', 'performance_schema','sys') ORDER BY table_schema, table_name;
As a result, you will get the list of all tables as shown in the picture below:
If you Prefer using the MySQL interactive shell command line, the following command would help .
All you need to do is connect to your database with the command, for example: use sakila.
After that, run the command. As can be seen, this command shows all the tables and views.
With an expression in the
Finally, we'll have a look at ERBuilder Data Modeler , which can extract database data structure. In addition to display all tables as a list (shown in red in the picture below), you can also see them as an ER Diagram (shown in blue). Furthermore, you can use the data model browser module which allows you to quickly explore and browse any table you desire (shown in green).
Furthermore, with the use of ERBuilder Data Modeler, you can also view details of the table and edit it. Simply by just double-clicking on the table name as you can see from the picture below, you will be getting table's columns, indexes, constraints, keys, triggers, description, and the SQL script.
ERBuilder Data Modeler is a GUI data modeling tool that allows you to visualize, design and model databases by using entity relationship diagrams and automatically generates the most popular SQL databases including Amazon Redshift. Generate and share the data Model documentation with your team. Optimize your data model by using advanced features such as test data generation, schema compare and schema synchronization. Try now ERBuilder for 15 days FREEDOWNLOAD NOW