my dog learned polymorphism*
The moose likes JDBC and the fly likes Which of the following statement will not implicitly begin a transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Which of the following statement will not implicitly begin a transaction" Watch "Which of the following statement will not implicitly begin a transaction" New topic
Author

Which of the following statement will not implicitly begin a transaction

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1067


this question i got from paper.It gives answer as a,b and c.
anyway then why d doesn't get as a answer?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Is this question about a specific database? I ask because the answer given is not universally applicable to all RSBMSs (for example, if the database is SQL Server or MySQL's MyISAM database engine none of the available answers are correct).


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1067
no,this is not specific any database?
Tanzy Akhtar
Ranch Hand

Joined: Jul 19, 2009
Posts: 110
I am not very sure, But as per simple logic,
read operation (that is SELECT) does not change the state of the database.

Hence it should not be the part of any transaction.

Please correct me if my guess is wrong.


Thanks,
Tanzy.


Roll with punchers, there is always tomorrow.
Techie Blog -- http://jtanzy.blogspot.com/
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Which of the following statement will not implicitly begin a transaction
 
Similar Threads
Interface doubt
String and StringBuffer
Thread question - please verify my answer
Confirmation Required for session bean(Q-SCBCD Exam Kit)Manning Pub
Which of the following statement will not implicitly begin a transaction?