{"id":31,"date":"2023-12-29T19:29:10","date_gmt":"2023-12-29T19:29:10","guid":{"rendered":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/?page_id=31"},"modified":"2023-12-29T19:29:11","modified_gmt":"2023-12-29T19:29:11","slug":"lesson-8","status":"publish","type":"page","link":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-8\/","title":{"rendered":"Lesson 8"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Using transactions<\/h2>\n\n\n\n<p class=\"\">In this lesson you will learn how to use transactions to safely perform a group of statements<\/p>\n\n\n\n<figure class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Learn MySQL in 2024 - Lesson 8 transactions\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/aWboXLtqJuE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Concepts used in this lesson include:<\/h3>\n\n\n\n<p class=\"\">SQL transactions are sequences of one or more SQL statements executed as a single unit of work, ensuring consistency by either committing all changes or rolling back to the previous state in case of errors<br><a target=\"_blank\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/commit.html\" rel=\"noreferrer noopener\">MySQL reference for more information<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Commands used in this lesson include<\/h3>\n\n\n\n<p class=\"\">&#8212; Begin Transaction;<br>&#8212; Rollback;<br>&#8212; Commit;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using transactions In this lesson you will learn how to use transactions to safely perform a group of statements Concepts used in this lesson include: SQL transactions are sequences of one or more SQL statements executed as a single unit of work, ensuring consistency by either committing all changes or rolling back to the previous [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"footnotes":""},"class_list":["post-31","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Lesson 8 - Free SQL Class<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-8\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lesson 8 - Free SQL Class\" \/>\n<meta property=\"og:description\" content=\"Using transactions In this lesson you will learn how to use transactions to safely perform a group of statements Concepts used in this lesson include: SQL transactions are sequences of one or more SQL statements executed as a single unit of work, ensuring consistency by either committing all changes or rolling back to the previous [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-8\/\" \/>\n<meta property=\"og:site_name\" content=\"Free SQL Class\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-29T19:29:11+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/lesson-8\\\/\",\"url\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/lesson-8\\\/\",\"name\":\"Lesson 8 - Free SQL Class\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/#website\"},\"datePublished\":\"2023-12-29T19:29:10+00:00\",\"dateModified\":\"2023-12-29T19:29:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/lesson-8\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/lesson-8\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/lesson-8\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lesson 8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/#website\",\"url\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/\",\"name\":\"Free SQL Class\",\"description\":\"Learn SQL using MySQL and SQL Server for Free in 2024\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Lesson 8 - Free SQL Class","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-8\/","og_locale":"en_US","og_type":"article","og_title":"Lesson 8 - Free SQL Class","og_description":"Using transactions In this lesson you will learn how to use transactions to safely perform a group of statements Concepts used in this lesson include: SQL transactions are sequences of one or more SQL statements executed as a single unit of work, ensuring consistency by either committing all changes or rolling back to the previous [&hellip;]","og_url":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-8\/","og_site_name":"Free SQL Class","article_modified_time":"2023-12-29T19:29:11+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-8\/","url":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-8\/","name":"Lesson 8 - Free SQL Class","isPartOf":{"@id":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/#website"},"datePublished":"2023-12-29T19:29:10+00:00","dateModified":"2023-12-29T19:29:11+00:00","breadcrumb":{"@id":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-8\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-8\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/"},{"@type":"ListItem","position":2,"name":"Lesson 8"}]},{"@type":"WebSite","@id":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/#website","url":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/","name":"Free SQL Class","description":"Learn SQL using MySQL and SQL Server for Free in 2024","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/pages\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":1,"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/pages\/31\/revisions"}],"predecessor-version":[{"id":32,"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/pages\/31\/revisions\/32"}],"wp:attachment":[{"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/media?parent=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}