Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JDBC and Relational Databases 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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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 liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1240


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 liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1240
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Which of the following statement will not implicitly begin a transaction
 
It's not a secret anymore!