SELECT count(*)
FROM information_schema.columns
WHERE table_name = 'Your_table_nale';
#The COUNT() function returns the number of rows that match specific characteristics.
SELECT
COUNT(*)
FROM
database_name.table_name
SELECT COUNT(*)
FROM dbo.bigTransactionHistory;
SELECT COUNT(*) as count_pet
FROM pet;
//Count Number Of Rows
function countRows($sql_get_results, $column = '')
{
if ($sql_get_results and $column) {
$count = 0;
foreach ($sql_get_results as $row) {
$count += $row->$column;
}
} else {
$count = count($sql_get_results);
}
if ($count) {
return $count;
} else {
return "0";
}
}