

Write this query or update/change query according to you on client side.
String sql="SELECT * FROM USER WHERE user_name=\""+name+"\" AND password=\""+password+"\"";
send this query as a string through socket and on server side execute this query as normal we do using jdbc
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.