I dont know much about JDBC. I want to find the number of records in a table.
The SQL statement for it is : SELECT COUNT(NAME) FROM USERS
Here NAME is an attribute of the USERS table.
I have tried executeQuery and executeUpdate methods of the Statement class. But I have got only errors. Can someone help me?