﻿<?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>Cep Telefonu Kontrol Eden Fonksiyon &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/cep-telefonu-kontrol-eden-fonksiyon/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Wed, 25 Aug 2021 10:27:09 +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 Cep Telefonu Kontrol Eden Fonksiyon</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-cep-telefonu-kontrol-eden-fonksiyon</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Sun, 24 May 2020 22:29:13 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Cep Telefonu Kontrol Eden Fonksiyon]]></category>
		<category><![CDATA[sql cep telefonu kontrol eden fonksiyon]]></category>
		<category><![CDATA[SQL Server’da Cep Telefonu Kontrol Eden Fonksiyon]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=9915</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server&#8217;da cep telefonu kontrol eden fonksiyon hakkında bilgi vereceğim. SQL Server&#8217;da bazı durumlarda cep telefonunu kontrol etmek isteyebilirsiniz. Konu ile...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server&#8217;da cep telefonu kontrol eden fonksiyon hakkında bilgi vereceğim.</p>
<p>SQL Server&#8217;da bazı durumlarda cep telefonunu kontrol etmek isteyebilirsiniz.</p>
<p>Konu ile ilgili Türkçe makale ya da yazı bulamadığım için fonksiyon oluşturmaya karar verdim. Bu konu hakkında yazılmış olan ilk makaledir. Fonksiyon daha da geliştirilebilir.</p>
<p>Aşağıdaki fonksiyon yardımıyla bu işlemi rahatlıkla yapabilirsiniz.</p>
<pre class="lang:default decode:true">--Fonksiyonun oluşturulması

CREATE FUNCTION CepTelefonuKontrolu
(
    @CepTelefonu VARCHAR(20)
)
RETURNS VARCHAR(50)
AS
BEGIN
    DECLARE @Sonuc NVARCHAR(100);

    IF LEN(@CepTelefonu) &lt;&gt; 10
		BEGIN
			SET @Sonuc = N'Girilen cep telefonu numarası 10 rakamdan fazladır . Lütfen tekrar kontrol edin.';
		END;
    ELSE
	BEGIN

		 IF SUBSTRING(@CepTelefonu, 1, 3) NOT IN ( '530', '532', '533', '534', '535', '536', '537', '538', '539', '505',
                                                  '506', '507', '551', '552', '553', '554', '555', '556', '557', '558',
                                                  '559', '540', '541', '542', '543', '544', '545', '546', '547', '548',
                                                  '549'
                                                )
        BEGIN
            SET @Sonuc = N'Geçersiz cep telefonu numarası girdiniz';
        END;
        ELSE
        BEGIN
            SET @Sonuc = N'Geçerli cep telefonu numarası girdiniz';
        END;

	END

    RETURN @Sonuc;
END;
GO

--Fonksiyonun Kullanımı

SELECT dbo.CepTelefonuKontrolu('5557778899')


</pre>
<p>Fonksiyonu oluşturup çalıştırdığınızda aşağıdaki gibi bir sonuç göreceksiniz.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-9917 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2020/05/sql-serverda-cep-telefonu-kontrol-eden-fonksiyon-1.jpg" alt="SQL Server’da Cep Telefonu Kontrol Eden Fonksiyon" width="700" height="381" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2020/05/sql-serverda-cep-telefonu-kontrol-eden-fonksiyon-1.jpg 700w, https://sqlserveregitimleri.com/wp-content/uploads/2020/05/sql-serverda-cep-telefonu-kontrol-eden-fonksiyon-1-315x171.jpg 315w, https://sqlserveregitimleri.com/wp-content/uploads/2020/05/sql-serverda-cep-telefonu-kontrol-eden-fonksiyon-1-551x300.jpg 551w, https://sqlserveregitimleri.com/wp-content/uploads/2020/05/sql-serverda-cep-telefonu-kontrol-eden-fonksiyon-1-248x135.jpg 248w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere geçerli bir cep telefonu girilip girilmediği kontrol edilmiş oldu.</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"> 509</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
