aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 1087


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: 1087
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/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which of the following statement will not implicitly begin a transaction