liubin liu wrote: > and the next question is that how to know the true count after a special > record while getting a special number records.
I'm not sure I quite understand what you are trying to do. See if this is close: SELECT max(COUNT(*), 2) FROM t1 WHERE id>=3; Though it's not clear why one would want to do this. -- Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users