﻿<?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>Smallint ve Int Veri Tipleri Arasındaki Farklar &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/smallint-ve-int-veri-tipleri-arasindaki-farklar/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Sat, 18 Mar 2023 12:55:29 +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 Smallint ve Int Veri Tipleri Arasındaki Farklar</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-smallint-ve-int-veri-tipleri-arasindaki-farklar</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Wed, 08 Nov 2017 11:19:13 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Smallint ve Int Veri Tipleri Arasındaki Farklar]]></category>
		<category><![CDATA[SQL Server’da Smallint ve Int Veri Tipleri Arasındaki Farklar]]></category>
		<category><![CDATA[SQL Server’da Smallint ve Int Veri Tipleri Arasındaki Farklar Nedir]]></category>
		<guid isPermaLink="false">http://sqlserveregitimleri.com/?p=2424</guid>

					<description><![CDATA[Herkese merhaba, Bu başlık altında SQL Server’da Smallint ve Int veri tipleri arasındaki farkları inceleyeceğiz. Smallint ve Int, tam sayı veri depolamak için kullanılan tam veri tipleridir. SMALLINT Kapladığı...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu başlık altında SQL Server’da Smallint ve Int veri tipleri arasındaki farkları inceleyeceğiz.</p>
<p>Smallint ve Int, tam sayı veri depolamak için kullanılan tam veri tipleridir.</p>
<h1 style="text-align: left;"><span style="font-size: 36pt; color: #ff0000;">SMALLINT</span></h1>
<p><strong>Kapladığı Alan</strong></p>
<p>2 Byte</p>
<p><strong>Minimum Değer</strong></p>
<p>-32,768 (-2<sup>15</sup>)</p>
<p><strong>Maximum Değer</strong></p>
<p>32,767 (2<sup>15-1</sup>)</p>
<p><strong>Örnek Kullanım</strong></p>
<div>
<pre class="line-numbers"><code class="language-sql">DECLARE @i SMALLINT;
SET @i = 150;
PRINT @i;</code></pre>
</div>
<p><strong>Sonuç</strong><br />
150</p>
<p><strong>Değerin Saklanması için Değişken Tarafından Kullanılan Boyut</strong></p>
<div>
<pre class="line-numbers"><code class="language-sql">DECLARE @i SMALLINT;
SET @i = 150;
PRINT DATALENGTH( @i);</code></pre>
<p><strong>Sonuç</strong><br />
2</p>
<p><strong>Aralık Dışı Değerler için Örnek Kullanım</strong></p>
<div>
<div id="highlighter_931877">
<pre class="line-numbers"><code class="language-sql">DECLARE @i SMALLINT;
SET @i = 32768;
PRINT @i;</code></pre>
</div>
</div>
<p><strong>Sonuç</strong></p>
<p>Msg 220, Level 16, State 1, Line 2<br />
Arithmetic overflow error for data type smallint, value = 32768.</p>
<p><strong>Negatif Değer Saklamada Örnek Kullanım</strong></p>
<div>
<pre class="line-numbers"><code class="language-sql">DECLARE @i SMALLINT;
SET @i = -150;
PRINT @i;</code></pre>
</div>
</div>
<p><strong>Sonuç</strong><br />
-150</p>
<p><strong>Hem Smallint hem de Int Aralık Değerinin Dışında Örnek Kullanım</strong></p>
<div>
<pre class="line-numbers"><code class="language-sql">DECLARE @i SMALLINT;
SET @i = 2147483648;
PRINT @i;</code></pre>
</div>
<p><strong>Sonuç</strong></p>
<p>Msg 8115, Level 16, State 2, Line 2<br />
Arithmetic overflow error converting expression to data type smallint.</p>
<h1 style="text-align: left;"><span style="font-size: 36pt; color: #ff0000;">INT</span></h1>
<p><strong>Kapladığı Alan</strong></p>
<p>4 Byte</p>
<p><strong>Minimum Değer</strong></p>
<p>-2,147,483,648 (-2<sup>31</sup>)</p>
<p><strong>Maximum Değer</strong></p>
<p>2,147,483,647 (2<sup>31-1</sup>)</p>
<p><strong>Örnek Kullanım</strong></p>
<div>
<pre class="line-numbers"><code class="language-sql">DECLARE @i INT;
SET @i = 150;
PRINT @i;</code></pre>
</div>
<p><strong>Sonuç</strong><br />
150</p>
<p><strong>Değerin Saklanması için Değişken Tarafından Kullanılan Boyut</strong></p>
<div>
<pre class="line-numbers"><code class="language-sql">DECLARE @i INT;
SET @i = 150;
PRINT DATALENGTH( @i);</code></pre>
</div>
<p><strong>Sonuç</strong><br />
4</p>
<p><strong>Aralık Dışı Değerler için Örnek Kullanım</strong></p>
<div>
<pre class="line-numbers"><code class="language-sql">DECLARE @i INT;
SET @i = 32768;
PRINT @i;</code></pre>
</div>
<p><strong>Sonuç</strong><br />
32768</p>
<p><strong>Negatif Değer Saklamada Örnek Kullanım</strong></p>
<div>
<pre class="line-numbers"><code class="language-sql">DECLARE @i INT;
SET @i = -150;
PRINT @i;</code></pre>
</div>
<p><strong>Sonuç</strong><br />
-150</p>
<p><strong>Hem Smallint hem de Int Aralık Değerinin Dışında Örnek Kullanım</strong></p>
<div>
<pre class="line-numbers"><code class="language-sql">DECLARE @i INT;
SET @i = 2147483648;
PRINT @i;</code></pre>
</div>
<p><strong>Sonuç</strong></p>
<p>Msg 8115, Level 16, State 2, Line 2<br />
Arithmetic overflow error converting expression to data type int.</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"> 940</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
