what is difference between excute query ()and execute update
()?
Answer Posted / megala devi
Execute query():it is using for DML(Data definition
language) and DDL (Data Manipulation Language)and mainly its
used for select query
example:String sql="select * from Employee_Details";
st.executequery(sql);
Execute update():it is using for DML(Data definition
language) and DDL (Data Manipulation Language)and mainly its
used for insert query,update query,delete
example:String sql="insert into Employee_Detail........";
st.executeUpdate(sql);
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the synonym of framework?
What is keyset in java?
Is java a digit method?
Can we override final method?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What is volatile data type?
How many inner classes can a class have?
What are the types of java?
What is the internal implementation of set in java?
What are the ways to instantiate the class class?
Is Java a dying language?
What is the difference between inner class and nested class?
What is the benefit of abstract class?
What is super in java?
What are the differences between Java 1.0 and Java 2.0?