I've been using MySQL from almost 4 years, you can imagine how many times I
used "COUNT(*)" ... I don't remember I had any kind of problems with it???
You may need to check the following:
1. Table? empty?
2. The condition in your SELECT query? probably returns nothing
3. Access right? you may have no access rights for the database, usually
"root" user can have all sufficient rights
4. Can you run your query in your MyAdmin program? or in your MySQLFront? or
in any well-known MySQL manager?
When I execute "SELECT * FROM employees" it works fine but when i execute
SELECT count(*) FROM employees" 0 rows are returned instead of the single
row holding the number of records. Connection is through OLEDB.
But since you've been doing it for years i'll take for granted it's
supposed to work
But just in case i am doing something wrong ( i am quite new to .NET ) here
is the piece of code:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.