Most relational databases handles a JDBC / SQL query in four steps:
- Parse the incoming SQL query
- Compile the SQL query
- Plan/optimize the data acquisition path
- Execute the optimized query / acquire and return data
could someone explain me these steps in these following code
Statement st=con.createStatement();
ResultSet rset=st.executeQuerry("Select * from tab");
PrepareStatement stm=con.preparedStatement("select * from tab");
ResulSet rset=stm.executeQuerry();
what difference acc to above will be in these?