Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Derek Lin
1,563 PointsAbout Transacations BEgin, Commit, Auto-commit.
What do you mean by some systems don't have autocommit turned on and thus we need to begin and commit after each statement. I remember you talked ABOUT IT IN the transactions section. The problem is I don't get why you would need to begin if you did not have to turn off autocommit cause it doesn't exist.
1 Answer

Steven Parker
221,438 PointsNot all databases have an autocommit feature that you can turn on and off.
This information only applies to those which do. And if it is turned off, any changes you make will not be permanent until you give the commit command.
Derek Lin
1,563 PointsDerek Lin
1,563 PointsSo then, if the db doesn't autocommit, then we need to:
begin
statement
commit
for each statement?
or would we just commit at the end
statement statement
commit;
Steven Parker
221,438 PointsSteven Parker
221,438 PointsI can't speak for all databases, but ones I have used personally allow you to perform multiple statements with one commit at the end.