Hello I began with java database programming and I have a question.
I want to save the number of rows in my table in an integer.
My code looks like:
ResultSet count_id = statement.executeQuery("SELECT COUNT (*) FROM customers");
int xy = count_id.getInt(1);
Unfortunately this doesn`t work. Have someone an idea what the problem
Sry if I make mistakes in english. It is not my mother tongue.:)