I hope you can help me, I'm making an android application that connects to sql server. I have a class that only helps me count the values of a column
public void consulta( ){
ResultSet rs;
PreparedStatement ps=conexion().prepareStatement("select count(*) from
Articulo");
rs = ps.executeQuery();
}
the query should give 35, the problem is that when trying to get the result, I do not know if it's okay
String dat=rs.getString("articulo");
throws me invalid column