﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sql&#8217;de Break ve Continue Kullanımı &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sqlde-break-ve-continue-kullanimi/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Fri, 28 Jan 2022 19:25:50 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>SQL Server’da Break ve Continue Kullanımı</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-break-ve-continue-kullanimi</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Mon, 18 Nov 2019 06:09:03 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sql Break ve Continue Kullanımı]]></category>
		<category><![CDATA[SQL Server’da Break ve Continue Kullanımı]]></category>
		<category><![CDATA[sql'de Break ve Continue Kullanımı]]></category>
		<guid isPermaLink="false">http://sqlserveregitimleri.com/?p=8449</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server’da Break ve Continue kullanımı hakkında bilgi vereceğim. Break : Şartlar yerine getirildiğinde döngüden çıkmak için kullanılır. Continue : Şartlar...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server’da Break ve Continue kullanımı hakkında bilgi vereceğim.</p>
<p><strong>Break :</strong> Şartlar yerine getirildiğinde döngüden çıkmak için kullanılır.</p>
<p><strong>Continue : </strong>Şartlar yerine getirildiğinde döngünün devam etmesi amacı ile kullanılır.</p>
<p>Aşağıda ikisinin beraber kullanımı ile ilgili bir örnek görmektesiniz.</p>
<pre class="line-numbers"><code class="language-sql">DECLARE @Sayac INT = 0;
WHILE @Sayac &lt; 10
BEGIN
    SET @Sayac = @Sayac + 1;
    IF @Sayac = 7
        CONTINUE;
    IF @Sayac = 9
        BREAK;
    PRINT @Sayac;
END;</code></pre>
<p>Kodu çalıştırdığınızda aşağıdaki gibi bir sonuç alacaksınız.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-8452 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2019/11/sql-serverda-break-ve-continue-kullanimi-1.jpg" alt="SQL Server’da Break ve Continue Kullanımı" width="700" height="343" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2019/11/sql-serverda-break-ve-continue-kullanimi-1.jpg 700w, https://sqlserveregitimleri.com/wp-content/uploads/2019/11/sql-serverda-break-ve-continue-kullanimi-1-315x154.jpg 315w, https://sqlserveregitimleri.com/wp-content/uploads/2019/11/sql-serverda-break-ve-continue-kullanimi-1-612x300.jpg 612w, https://sqlserveregitimleri.com/wp-content/uploads/2019/11/sql-serverda-break-ve-continue-kullanimi-1-276x135.jpg 276w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere eğer sayaç 7&#8217;ye eşitse <strong>Continue</strong> ediyor ve 7&#8217;yi hiç ekrana basmadan 8&#8217;e geçiyor.</p>
<p><strong>Break</strong> ifadesinde ise sayaç 9&#8217;a gelince döngüden çıkıyor ve 9 ve 10&#8217;u hiç yazmıyor.</p>
<p>Herkese çalışma hayatında ve yaşamında başarılar kolaylıklar.</p>
<div class='epvc-post-count'><span class='epvc-eye'></span>  <span class="epvc-count"> 839</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
