This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

count number of rows

Jan 18th, 2006, 04:20 AM

Is it possible to do the sql-command "count * from table" with Spring? Can anyone provide some code to do this?
I know you can use the functions getRowCount and getColumnCount on the resultset. But this is only valid after processing is complete. I want to know the number of records before I proces. If the table is too large I don't want to proces the records...