Indicate which should be the next command: Statement st = Conexao.getConection().createStatement(); ResultSet rs = st.executeUpdate("select * from ...
Indicate which should be the next command: Statement st = Conexao.getConection().createStatement(); ResultSet rs = st.executeUpdate("select * from ALUNOS"); ResultSet rs = st.executeQuery("select * from ALUNOS"); List< Aluno > ls = st.executeQuery("select * from ALUNOS"); List ls = st().executeUpdate("select * from ALUNOS"); List< Aluno > ls = st.prepareStatement("select * from ALUNOS");
ResultSet rs = st.executeQuery("select * from ALUNOS");
A próxima instrução correta seria:
ResultSet rs = st.executeQuery("select * from ALUNOS");
Essa instrução irá executar a consulta SQL "select * from ALUNOS" e armazenar o resultado em um objeto ResultSet chamado "rs".
0
0
Faça como milhares de estudantes: teste grátis o Passei Direto
Compartilhar