T
T
thatmaniscool2020-02-16 14:10:47
MySQL
thatmaniscool, 2020-02-16 14:10:47

Why is mysql query returning incorrect counter value?

There is a small table no more than 1000 records. The table is constantly being edited, some entries are deleted, some are edited.
It was required to make a small selection for certain parameters, and when selecting these parameters, the value is not correct.
Suppose I know that the exact number of records is 123, but in fact it returns 91.
PS.
I also work at an enterprise and they also make a sample. The sample is consistently smaller by 11 records. What is it connected with?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Melnikov, 2020-02-16
@immelnikoff

Suppose I know that the exact number of records is 123, but in fact it returns 91.

How do you know this? will definitely give the exact value of the number of rows in the table. Maybe you are actually using a query like ?
SELECT COUNT(*) FROM table
SELECT COUNT(col) FROM table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question