{"id":265,"date":"2025-02-20T11:28:23","date_gmt":"2025-02-20T09:28:23","guid":{"rendered":"https:\/\/denielkruusman24.thkit.ee\/wp\/?page_id=265"},"modified":"2025-03-27T01:19:18","modified_gmt":"2025-03-26T22:19:18","slug":"sql-salvestatud-protseduurid-localhost","status":"publish","type":"page","link":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265","title":{"rendered":"SQL. Saving \/ localhost"},"content":{"rendered":"\n<ol class=\"wp-block-list\">\n<li>Add<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-src=\"https:\/\/denielkruusman24.thkit.ee\/wp\/wp-content\/uploads\/2025\/02\/image-3.png\" alt=\"\" class=\"wp-image-270 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p>BEGIN<br>INSERT INTO zanr(zanrNimi, zanrKirjeldus)<br>VALUES(<br>zanrNimi, zanrKirjeldus);<br>SELECT * FROM zanr;<br>END<\/p>\n\n\n\n<p><strong>Work-Check<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-src=\"https:\/\/denielkruusman24.thkit.ee\/wp\/wp-content\/uploads\/2025\/02\/image-6.png\" alt=\"\" class=\"wp-image-273 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p><strong>2. Kustutamine<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-src=\"https:\/\/denielkruusman24.thkit.ee\/wp\/wp-content\/uploads\/2025\/02\/image-4.png\" alt=\"\" class=\"wp-image-271 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p>BEGIN<br>SELECT * FROM zanr;<br>DELETE FROM zanr WHERE zanrID=id;<br>SELECT * FROM zanr;<br>END<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-src=\"https:\/\/denielkruusman24.thkit.ee\/wp\/wp-content\/uploads\/2025\/02\/image-7.png\" alt=\"\" class=\"wp-image-274 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p>3. Drop-table<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-src=\"https:\/\/denielkruusman24.thkit.ee\/wp\/wp-content\/uploads\/2025\/02\/image-2.png\" alt=\"\" class=\"wp-image-269 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p>BEGIN<\/p>\n\n\n\n<p>SET<br>@STMT = CONCAT(&#8220;DROP TABLE &#8220;, tabeli_nimi);<br>PREPARE S FROM @STMT;<br>EXECUTE S;<br>DEALLOCATE PREPARE S;<br>END<\/p>\n\n\n\n<p><strong>Work-Check<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-src=\"https:\/\/denielkruusman24.thkit.ee\/wp\/wp-content\/uploads\/2025\/02\/image-5.png\" alt=\"\" class=\"wp-image-272 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>BEGININSERT INTO zanr(zanrNimi, zanrKirjeldus)VALUES(zanrNimi, zanrKirjeldus);SELECT * FROM zanr;END Work-Check 2. Kustutamine BEGINSELECT * FROM zanr;DELETE FROM zanr WHERE zanrID=id;SELECT * FROM zanr;END 3. Drop-table BEGIN SET@STMT = CONCAT(&#8220;DROP TABLE &#8220;, tabeli_nimi);PREPARE S FROM @STMT;EXECUTE S;DEALLOCATE PREPARE S;END Work-Check<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"saved_in_kubio":false,"footnotes":""},"class_list":["post-265","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQL. Saving \/ localhost - Deniel Kruusman Portfolio<\/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:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL. Saving \/ localhost - Deniel Kruusman Portfolio\" \/>\n<meta property=\"og:description\" content=\"BEGININSERT INTO zanr(zanrNimi, zanrKirjeldus)VALUES(zanrNimi, zanrKirjeldus);SELECT * FROM zanr;END Work-Check 2. Kustutamine BEGINSELECT * FROM zanr;DELETE FROM zanr WHERE zanrID=id;SELECT * FROM zanr;END 3. Drop-table BEGIN SET@STMT = CONCAT(&#8220;DROP TABLE &#8220;, tabeli_nimi);PREPARE S FROM @STMT;EXECUTE S;DEALLOCATE PREPARE S;END Work-Check\" \/>\n<meta property=\"og:url\" content=\"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265\" \/>\n<meta property=\"og:site_name\" content=\"Deniel Kruusman Portfolio\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-26T22:19:18+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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/?page_id=265\",\"url\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/?page_id=265\",\"name\":\"SQL. Saving \\\/ localhost - Deniel Kruusman Portfolio\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/?page_id=265#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/?page_id=265#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/image-3.png\",\"datePublished\":\"2025-02-20T09:28:23+00:00\",\"dateModified\":\"2025-03-26T22:19:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/?page_id=265#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/?page_id=265\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/?page_id=265#primaryimage\",\"url\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/image-3.png\",\"contentUrl\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/image-3.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/?page_id=265#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL. Saving \\\/ localhost\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/#website\",\"url\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/\",\"name\":\"Deniel Kruusman Portfolio\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/denielkruusman24.thkit.ee\\\/wp\\\/eng\\\/?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":"SQL. Saving \/ localhost - Deniel Kruusman Portfolio","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:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265","og_locale":"en_US","og_type":"article","og_title":"SQL. Saving \/ localhost - Deniel Kruusman Portfolio","og_description":"BEGININSERT INTO zanr(zanrNimi, zanrKirjeldus)VALUES(zanrNimi, zanrKirjeldus);SELECT * FROM zanr;END Work-Check 2. Kustutamine BEGINSELECT * FROM zanr;DELETE FROM zanr WHERE zanrID=id;SELECT * FROM zanr;END 3. Drop-table BEGIN SET@STMT = CONCAT(&#8220;DROP TABLE &#8220;, tabeli_nimi);PREPARE S FROM @STMT;EXECUTE S;DEALLOCATE PREPARE S;END Work-Check","og_url":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265","og_site_name":"Deniel Kruusman Portfolio","article_modified_time":"2025-03-26T22:19:18+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265","url":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265","name":"SQL. Saving \/ localhost - Deniel Kruusman Portfolio","isPartOf":{"@id":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/#website"},"primaryImageOfPage":{"@id":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265#primaryimage"},"image":{"@id":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265#primaryimage"},"thumbnailUrl":"https:\/\/denielkruusman24.thkit.ee\/wp\/wp-content\/uploads\/2025\/02\/image-3.png","datePublished":"2025-02-20T09:28:23+00:00","dateModified":"2025-03-26T22:19:18+00:00","breadcrumb":{"@id":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265#primaryimage","url":"https:\/\/denielkruusman24.thkit.ee\/wp\/wp-content\/uploads\/2025\/02\/image-3.png","contentUrl":"https:\/\/denielkruusman24.thkit.ee\/wp\/wp-content\/uploads\/2025\/02\/image-3.png"},{"@type":"BreadcrumbList","@id":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?page_id=265#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/"},{"@type":"ListItem","position":2,"name":"SQL. Saving \/ localhost"}]},{"@type":"WebSite","@id":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/#website","url":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/","name":"Deniel Kruusman Portfolio","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"kubio_ai_page_context":{"short_desc":"","purpose":"general"},"_links":{"self":[{"href":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/pages\/265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=265"}],"version-history":[{"count":1,"href":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/pages\/265\/revisions"}],"predecessor-version":[{"id":420,"href":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/pages\/265\/revisions\/420"}],"wp:attachment":[{"href":"https:\/\/denielkruusman24.thkit.ee\/wp\/eng\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}