I'm actually have the Problem that I don't know how to get a random nickname from my Table called "nicks" where the column called "nicknames".
Here is an example what I've.
private String getNames() {
String names= "";
try {
ResultSet rs = Core.getSQL().getResultSet("SELECT * FROM nicks");
names = rs.getString("nicknames");
} catch (Exception e) {
e.printStackTrace();
}
return names;
}
}
Can someone pls tell me why I only get the String "" and how I can get just one random entry out of my database?
Hope that someone can help me.