{"id":1578,"date":"2025-01-08T17:37:00","date_gmt":"2025-01-08T10:37:00","guid":{"rendered":"https:\/\/www.pgtutorial.com\/?page_id=1578"},"modified":"2025-01-08T17:38:06","modified_gmt":"2025-01-08T10:38:06","slug":"plpgsql-continue","status":"publish","type":"page","link":"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-continue\/","title":{"rendered":"PL\/pgSQL CONTINUE"},"content":{"rendered":"\n<p><strong>Summary:<\/strong> In this tutorial, you&#8217;ll learn how to use the PL\/pgSQL <code>CONTINUE<\/code> statement to skip the remaining statements in the current loop iteration and begin the next iteration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='overview-of-the-plpgsql-continue-statement'>Overview of the PL\/pgSQL CONTINUE statement <a href=\"#overview-of-the-plpgsql-continue-statement\" class=\"anchor\" id=\"overview-of-the-plpgsql-continue-statement\" title=\"Anchor for Overview of the PL\/pgSQL CONTINUE statement\">#<\/a><\/h2>\n\n\n\n<p>The <code>CONTINUE<\/code> statement skips the remaining statements in the current iteration of a loop and starts a new iteration based on a condition.<\/p>\n\n\n\n<p>Here&#8217;s the most basic syntax of the PL\/pgSQL <code>CONTINUE<\/code> statement:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-keyword\">CONTINUE<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>If you want to refer to a specific loop (in nested loops), you can use a loop label in the <code>CONTINUE<\/code> statement:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-keyword\">CONTINUE<\/span> loop_label;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Typically, you specify a condition to skip the current iteration:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-keyword\">IF<\/span> condition THEN\n    <span class=\"hljs-keyword\">CONTINUE<\/span>;\nEND <span class=\"hljs-keyword\">IF<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>However, the <code>CONTINUE<\/code> statement has a more concise syntax to do so:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-keyword\">CONTINUE<\/span> WHEN condition;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>The statement skips the current iteration only when the condition is true.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='using-continue-statement-with-loop-statement'>Using CONTINUE statement with LOOP statement <a href=\"#using-continue-statement-with-loop-statement\" class=\"anchor\" id=\"using-continue-statement-with-loop-statement\" title=\"Anchor for Using CONTINUE statement with LOOP statement\">#<\/a><\/h2>\n\n\n\n<p>The following example uses the <code>CONTINUE<\/code> statement to skip the even numbers between 1 and 10:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-keyword\">DO<\/span>\n$$\n<span class=\"hljs-keyword\">DECLARE<\/span>\n    n INT := <span class=\"hljs-number\">1<\/span>;\nBEGIN\n    LOOP\n        <span class=\"hljs-keyword\">IF<\/span> n % <span class=\"hljs-number\">2<\/span> = <span class=\"hljs-number\">0<\/span> THEN\n            n := n + <span class=\"hljs-number\">1<\/span>;\n            <span class=\"hljs-keyword\">CONTINUE<\/span>;\n        END <span class=\"hljs-keyword\">IF<\/span>;\n        RAISE NOTICE <span class=\"hljs-string\">'Odd number: %'<\/span>, n;\n        n := n + <span class=\"hljs-number\">1<\/span>;\n        <span class=\"hljs-keyword\">EXIT<\/span> WHEN n &gt; <span class=\"hljs-number\">10<\/span>;\n    END LOOP;\nEND;\n$$;\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>How it works:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <code><a href=\"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-for-loop\/\">LOOP<\/a><\/code> iterates over numbers from 1 to 10.<\/li>\n\n\n\n<li>The <code>CONTINUE<\/code> statement skips the remaining statements of the iteration where the counter is even.<\/li>\n\n\n\n<li>The <code>RAISE NOTICE<\/code> statement displays only odd numbers.<\/li>\n<\/ul>\n\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"HTTP\" data-shcb-language-slug=\"http\"><span><code class=\"hljs language-http\"><span class=\"hljs-attribute\">NOTICE<\/span>:  Odd number: 1\n<span class=\"hljs-attribute\">NOTICE<\/span>:  Odd number: 3\n<span class=\"hljs-attribute\">NOTICE<\/span>:  Odd number: 5\n<span class=\"hljs-attribute\">NOTICE<\/span>:  Odd number: 7\n<span class=\"hljs-attribute\">NOTICE<\/span>:  Odd number: 9<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTTP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">http<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id='using-continue-statement-with-a-for-loop'>Using CONTINUE statement with a FOR Loop <a href=\"#using-continue-statement-with-a-for-loop\" class=\"anchor\" id=\"using-continue-statement-with-a-for-loop\" title=\"Anchor for Using CONTINUE statement with a FOR Loop\">#<\/a><\/h2>\n\n\n\n<p>The following example uses the <code>CONTINUE<\/code> statement to skip iterations where the number is even:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-keyword\">DO<\/span>\n$$\nBEGIN\n    <span class=\"hljs-keyword\">FOR<\/span> n IN <span class=\"hljs-number\">1.<\/span><span class=\"hljs-number\">.10<\/span> LOOP\n        <span class=\"hljs-keyword\">CONTINUE<\/span> WHEN n % <span class=\"hljs-number\">2<\/span> = <span class=\"hljs-number\">0<\/span>;\n        RAISE NOTICE <span class=\"hljs-string\">'Odd number: %'<\/span>, n;\n    END LOOP;\nEND\n$$;\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>How it works:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <code><a href=\"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-for-loop\/\">FOR<\/a><\/code> loop iterates over numbers from 1 to 10.<\/li>\n\n\n\n<li>The <code>CONTINUE<\/code> skips the current iteration if the number is even.<\/li>\n\n\n\n<li>The <code>RAISE NOTICE<\/code> displays the odd numbers.<\/li>\n<\/ul>\n\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"HTTP\" data-shcb-language-slug=\"http\"><span><code class=\"hljs language-http\"><span class=\"hljs-attribute\">NOTICE<\/span>:  Odd number: 1\n<span class=\"hljs-attribute\">NOTICE<\/span>:  Odd number: 3\n<span class=\"hljs-attribute\">NOTICE<\/span>:  Odd number: 5\n<span class=\"hljs-attribute\">NOTICE<\/span>:  Odd number: 7\n<span class=\"hljs-attribute\">NOTICE<\/span>:  Odd number: 9<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTTP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">http<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id='using-continue-statement-with-a-while-loop'>Using CONTINUE statement with a WHILE Loop <a href=\"#using-continue-statement-with-a-while-loop\" class=\"anchor\" id=\"using-continue-statement-with-a-while-loop\" title=\"Anchor for Using CONTINUE statement with a WHILE Loop\">#<\/a><\/h2>\n\n\n\n<p>The following example uses the <code>CONTINUE<\/code> statement to count numbers while skipping multiples of 3:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-keyword\">DO<\/span>\n$$\n<span class=\"hljs-keyword\">DECLARE<\/span>\n    counter INTEGER := <span class=\"hljs-number\">1<\/span>;\nBEGIN\n    <span class=\"hljs-keyword\">WHILE<\/span> counter &lt;= <span class=\"hljs-number\">10<\/span> LOOP\n        <span class=\"hljs-keyword\">IF<\/span> counter % <span class=\"hljs-number\">3<\/span> = <span class=\"hljs-number\">0<\/span> THEN\n            counter := counter + <span class=\"hljs-number\">1<\/span>;\n            <span class=\"hljs-keyword\">CONTINUE<\/span>;\n        END <span class=\"hljs-keyword\">IF<\/span>;\n        RAISE NOTICE <span class=\"hljs-string\">'Number: %'<\/span>, counter;\n        counter := counter + <span class=\"hljs-number\">1<\/span>;\n    END LOOP;\nEND;\n$$;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>How it works:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <code><a href=\"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-while\/\">WHILE<\/a><\/code> loop runs until the counter exceeds 10.<\/li>\n\n\n\n<li><code>CONTINUE<\/code> skips the iteration if the counter is a multiple of 3.<\/li>\n\n\n\n<li>The <code>RAISE NOTICE<\/code> displays only non-multiples of 3.<\/li>\n<\/ul>\n\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">NOTICE:  <span class=\"hljs-built_in\">Number<\/span>: <span class=\"hljs-number\">1<\/span>\n<span class=\"hljs-attr\">NOTICE<\/span>:  <span class=\"hljs-built_in\">Number<\/span>: <span class=\"hljs-number\">2<\/span>\n<span class=\"hljs-attr\">NOTICE<\/span>:  <span class=\"hljs-built_in\">Number<\/span>: <span class=\"hljs-number\">4<\/span>\n<span class=\"hljs-attr\">NOTICE<\/span>:  <span class=\"hljs-built_in\">Number<\/span>: <span class=\"hljs-number\">5<\/span>\n<span class=\"hljs-attr\">NOTICE<\/span>:  <span class=\"hljs-built_in\">Number<\/span>: <span class=\"hljs-number\">7<\/span>\n<span class=\"hljs-attr\">NOTICE<\/span>:  <span class=\"hljs-built_in\">Number<\/span>: <span class=\"hljs-number\">8<\/span>\n<span class=\"hljs-attr\">NOTICE<\/span>:  <span class=\"hljs-built_in\">Number<\/span>: <span class=\"hljs-number\">10<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id='summary'>Summary <a href=\"#summary\" class=\"anchor\" id=\"summary\" title=\"Anchor for Summary\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the <code>CONTINUE<\/code> statement to skip the remaining statements in the current iteration of a loop and begin the next iteration based on a condition.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id='quiz'>Quiz <a href=\"#quiz\" class=\"anchor\" id=\"quiz\" title=\"Anchor for Quiz\">#<\/a><\/h2>\n\n\n\n<iframe loading=\"lazy\"\n  name=\"quiz\"\n  src=\"\/quiz\/?quiz=plpgsql-continue\"\n  height=\"700\"\n  width=\"600\"\n  class=\"iframe\"\n><\/iframe>\n\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful ?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"1578\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-continue\/\"\n\t\t\t\tdata-post-title=\"PL\/pgSQL CONTINUE\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"1578\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-continue\/\"\n\t\t\t\tdata-post-title=\"PL\/pgSQL CONTINUE\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Summary: In this tutorial, you&#8217;ll learn how to use the PL\/pgSQL CONTINUE statement to skip the remaining statements in the current loop iteration and begin the next iteration. Overview of the PL\/pgSQL CONTINUE statement # The CONTINUE statement skips the remaining statements in the current iteration of a loop and starts a new iteration based [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1420,"menu_order":12,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1578","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>PL\/pgSQL CONTINUE<\/title>\n<meta name=\"description\" content=\"You&#039;ll learn how to use the PL\/pgSQL CONTINUE statement to skip the remaining statements in the current loop iteration and begin the next iteration.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-continue\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PL\/pgSQL CONTINUE\" \/>\n<meta property=\"og:description\" content=\"You&#039;ll learn how to use the PL\/pgSQL CONTINUE statement to skip the remaining statements in the current loop iteration and begin the next iteration.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-continue\/\" \/>\n<meta property=\"og:site_name\" content=\"PostgreSQL Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-08T10:38:06+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:\\\/\\\/www.pgtutorial.com\\\/plpgsql\\\/plpgsql-continue\\\/\",\"url\":\"https:\\\/\\\/www.pgtutorial.com\\\/plpgsql\\\/plpgsql-continue\\\/\",\"name\":\"PL\\\/pgSQL CONTINUE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/#website\"},\"datePublished\":\"2025-01-08T10:37:00+00:00\",\"dateModified\":\"2025-01-08T10:38:06+00:00\",\"description\":\"You'll learn how to use the PL\\\/pgSQL CONTINUE statement to skip the remaining statements in the current loop iteration and begin the next iteration.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/plpgsql\\\/plpgsql-continue\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pgtutorial.com\\\/plpgsql\\\/plpgsql-continue\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/plpgsql\\\/plpgsql-continue\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pgtutorial.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PL\\\/pgSQL\",\"item\":\"https:\\\/\\\/www.pgtutorial.com\\\/plpgsql\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PL\\\/pgSQL CONTINUE\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/#website\",\"url\":\"https:\\\/\\\/www.pgtutorial.com\\\/\",\"name\":\"PostgreSQL Tutorial\",\"description\":\"Learn PostgreSQL from Scratch\",\"alternateName\":\"PostgreSQL\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pgtutorial.com\\\/?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":"PL\/pgSQL CONTINUE","description":"You'll learn how to use the PL\/pgSQL CONTINUE statement to skip the remaining statements in the current loop iteration and begin the next iteration.","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:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-continue\/","og_locale":"en_US","og_type":"article","og_title":"PL\/pgSQL CONTINUE","og_description":"You'll learn how to use the PL\/pgSQL CONTINUE statement to skip the remaining statements in the current loop iteration and begin the next iteration.","og_url":"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-continue\/","og_site_name":"PostgreSQL Tutorial","article_modified_time":"2025-01-08T10:38:06+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-continue\/","url":"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-continue\/","name":"PL\/pgSQL CONTINUE","isPartOf":{"@id":"https:\/\/www.pgtutorial.com\/#website"},"datePublished":"2025-01-08T10:37:00+00:00","dateModified":"2025-01-08T10:38:06+00:00","description":"You'll learn how to use the PL\/pgSQL CONTINUE statement to skip the remaining statements in the current loop iteration and begin the next iteration.","breadcrumb":{"@id":"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-continue\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-continue\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pgtutorial.com\/plpgsql\/plpgsql-continue\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pgtutorial.com\/"},{"@type":"ListItem","position":2,"name":"PL\/pgSQL","item":"https:\/\/www.pgtutorial.com\/plpgsql\/"},{"@type":"ListItem","position":3,"name":"PL\/pgSQL CONTINUE"}]},{"@type":"WebSite","@id":"https:\/\/www.pgtutorial.com\/#website","url":"https:\/\/www.pgtutorial.com\/","name":"PostgreSQL Tutorial","description":"Learn PostgreSQL from Scratch","alternateName":"PostgreSQL","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pgtutorial.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages\/1578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/comments?post=1578"}],"version-history":[{"count":5,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages\/1578\/revisions"}],"predecessor-version":[{"id":1584,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages\/1578\/revisions\/1584"}],"up":[{"embeddable":true,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages\/1420"}],"wp:attachment":[{"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/media?parent=1578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}