1 (user_id of first record)
12 (user_id of second record)
BUILD SUCCESSFUL (total time: 0 seconds)
Here my problem is that i have two records in database with primary key the user_id, as you can see the user_id of first record is getting printed and and then it prints rest of the second record.
I am clueless about it. It just prints the user_id of the first record and no other things of that records.
I am using Netbeans so please consider it while answering the question.
Please let me know what is the problem.
No its the output from the java code.. I havent wrote anything before it so its just displaying the values of the database.
Joined: May 14, 2004
Did you check if you have "any" data for other columns apart from userid for the first record in the database. (userid = 1) ?
Can you confirm it by running query using MySQL UI and checking the output?