sql query to get the number of rows in a table
snippet in sql

sql query to get the number of rows in a table

user944

SELECT COUNT(*) FROM tablename

To count number of rows in SQL table

user9457

SELECT count(*)
FROM information_schema.columns
WHERE table_name = 'Your_table_nale';