1
how do I return a value from a "SELECT" method? I have this code:
public void SELECT(String Colunas,String Tabela,String Condicao)
{
String QUERY=null;
if(Colunas!=null && Condicao!=null)
QUERY=" SELECT "+Colunas+" FROM "+Tabela+" WHERE "+Condicao;
else if(Colunas!=null&&Condicao==null)
QUERY=" SELECT "+Colunas+" FROM "+Tabela;
else if(Condicao!=null&& Tabela==null)
QUERY=" SELECT "+Colunas+" FROM "+Tabela;
BD.execSQL(QUERY);
}
how do I return a set of values in the form of a table?