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 use of coding?
How do you input a string in java?
Does java have a compiler?
Write a program to print fibonacci series up to count 10.
What is the simpletimezone class in java programming?
How to use arraylist in java netbeans?
How are variables stored?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What is the difference between length and size in java?
What are implicit objects in java?
What is meant by design patterns?
How do you sort an array in java?
What are the three types of design patterns?
What is the private method modifier?
What is the difference between yielding and sleeping in java programming?