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 an object class?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
Name container classes in java programming?
How can constructor chaining be done by using the super keyword?
how to handle exceptions in ejb?
What does g mean in regex?
Differentiate between stringbuffer and string?
What is illegal identifier in java?
What is method overloading with type promotion?
what are three ways in which a thread can enter the waiting state? : Java thread
What is meant by anonymous class?
What is default constructors?
What are the classes of java?
What are autoboxing and unboxing? When does it occur?
What is the use of default method in interface in java? Explain