Quote:
Originally posted by andrewst
>You don't say what the difference is exactly - are they giving different >non-zero values for the COUNT(*), or is one returning zero?
|
yes,they return different values:the first one is 244,which is wrong:the second 1,right,because kseq has unique value.
Quote:
>Some possibilities:
>- you are logged on as a different user and counting rows from a >different table with the same name.
>- you are logged on as a different user and BENCH is a view that >returns different results for different users (e.g. has WHERE >created_by = USER)
|
exactly the same user and it was he who created table bench.
Quote:
|
>- Row Level Security is being used on this table, and you have a >different CONTEXT set
|
it should not be used,however I am not very sure about this.
244 was returned again when running some other similiar query,for example,
EXEC SQL SELECT COUNT(*)
INTO :rowcount
FROM BENCH
WHERE K10K = 2;
printf("rowcount=%d",rowcount);
but not all.The most of results are correct.