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 difference between float and double?
What is the difference between private & public & friendly classes?
What is a class object?
What do you mean by singleton class in java?
What is the difference between math floor and math round?
What does .equals do in java?
Is boolean a wrapper class in java?
How finally used under exception handling?
Which sorting is used in arrays sort in java?
Can we execute java program without main method?
Is java pass by value or pass by reference?
How to do a true java ping from windows?
What is identifier with example?
How can we find the actual size of an object on the heap?
Define jit compiler?