Hi, I am new in c# and I would like to know how to get record count of a mysql query with c#.
The code I am using is:
MySqlCommand cmd = new MySqlCommand("SELECT COUNT(*) FROM `customer`;", Con);
var rd = cmd.ExecuteReader();
Here what to do with variabl rd to get count?