In phpMyAdmin, on the Structure page for each database, there is a table showing all the tables in the DB and the number of records in each table. Is there something similar in Workbech?
Thanks.
Counting all of the Rows in a Table. To counts all of the rows in a table, whether they contain NULL values or not, use COUNT(*). That form of the COUNT() function basically returns the number of rows in a result set returned by a SELECT statement.
The SQL COUNT() function returns the number of rows in a table satisfying the criteria specified in the WHERE clause. It sets the number of rows or non NULL column values. COUNT() returns 0 if there were no matching rows. The above syntax is the general SQL 2003 ANSI standard syntax.
The first command you will need to use is the SELECT FROM MySQL statement that has the following syntax: SELECT * FROM table_name; This is a basic MySQL query which will tell the script to select all the records from the table_name table.
Inside the workbench right click the table in question and click "Select Rows - Limit 1000." It's the first option in the pop-up menu. Show activity on this post. To get the convenient list of tables on the left panel below each database you have to click the tiny icon on the top right of the left panel.
Late answer but for anyone else who comes across this page the way to do this in MySQL Workbench 6.0 is:
This column shows you the number of values for each of the primary and navigation keys in the each table in your database. The number of values for your PRIMARY key is the number of rows. Hope that helps.
Another way is to:
I dont know how to do it in MySQL Workbench but the following query returns the number of rows in a table.
SELECT COUNT(*) FROM table_name;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With