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


Please Help Members By Posting Answers For Below Questions

What is the use of coding?

611


How do you input a string in java?

611


Does java have a compiler?

661


Write a program to print fibonacci series up to count 10.

590


What is the simpletimezone class in java programming?

642






How to use arraylist in java netbeans?

605


How are variables stored?

621


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

683


What is the difference between length and size in java?

594


What are implicit objects in java?

640


What is meant by design patterns?

674


How do you sort an array in java?

631


What are the three types of design patterns?

604


What is the private method modifier?

691


What is the difference between yielding and sleeping in java programming?

674