Hello everyone,
My task as a homework project is to add a label to Gui (sql data base, data table) to total records (Datensatz 1 von 2).
The first part was to obtain the number of the actual record which I have achieved via method getRow() in ResultSet (In the code it is calld ergebnisMenge in German).
I have created the JLabel and called it datensatz.
The part that I do not know is how to achieve the total records and combine it in the code.
From what I found in researching in the Internet, I need to execute Query SELECT COUNT (*) FROM adressen but how do I combine it within the following code and display it as a Label?
Thanks in advance for any useful information, please note that it will be better way more helpful if you add some pseudocode or example since I am a beginner and get lost with the technical stuff.
bs.jpg
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.