このクエリは実行されず、コードはブロックされます。クエリ で ISSUEは、while文であってもよい....ログインプログラムのMysqlテーブル値(名前、パスワード)の取得方法
try {
getConnection();
String user = text.getText().trim();
String pass = password.getText().trim();
String query = "Select name,password from pharmacy.login where name = '" + user + "' and password = '" + pass + "'";
result = statement.executeQuery(query);
System.out.println("hii");
int count = 0;
while (result.next()) {
count++;
}
}
ご質問はありますか?ご質問は何ですか? – suulisin
コードを適切に書式設定する方法については、[here](http://meta.stackexchange.com/questions/22186/how-do-i-format-my-code-blocks)を参照してください。 – Aconcagua