﻿<?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>Tinyint ve Smallint Veri Tipleri Arasındaki Farklar &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/tinyint-ve-smallint-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 13:01:55 +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 Tinyint ve Smallint Veri Tipleri Arasındaki Farklar</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-tinyint-ve-smallint-veri-tipleri-arasindaki-farklar</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Wed, 08 Nov 2017 11:42:05 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server’da Tinyint ve Smallint Veri Tipleri Arasındaki Farklar]]></category>
		<category><![CDATA[SQL Server’da Tinyint ve Smallint Veri Tipleri Arasındaki Farklar Nedir]]></category>
		<category><![CDATA[Tinyint ve Smallint Veri Tipleri Arasındaki Farklar]]></category>
		<guid isPermaLink="false">http://sqlserveregitimleri.com/?p=2427</guid>

					<description><![CDATA[Herkese merhaba, Bu başlık altında SQL Server’da Tinyint ve Smallint veri tipleri arasındaki farkları inceleyeceğiz. Tinyint ve Smallint, tam sayı veri depolamak için kullanılan veri tipleridir. TINYINT...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu başlık altında SQL Server’da Tinyint ve Smallint veri tipleri arasındaki farkları inceleyeceğiz.</p>
<p>Tinyint ve Smallint, tam sayı veri depolamak için kullanılan veri tipleridir.</p>
<h1 style="text-align: left;"><span style="font-size: 36pt; color: #ff0000;">TINYINT</span></h1>
<p><strong>Kapladığı Alan</strong></p>
<p>1 Byte</p>
<p><strong>Minimum Değer</strong></p>
<p>0</p>
<p><strong>Maximum Değer</strong></p>
<p>255</p>
<p><strong>Örnek Kullanım</strong></p>
<div>
<div id="highlighter_226167">
<pre class="line-numbers"><code class="language-sql">DECLARE @i TINYINT
SET @i = 150
PRINT @i</code></pre>
</div>
</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>
<div id="highlighter_16840">
<pre class="line-numbers"><code class="language-sql">DECLARE @i TINYINT
SET @i = 150
PRINT DATALENGTH( @i)</code></pre>
</div>
</div>
<p><strong>Sonuç</strong><br />
1</p>
<p><strong>Aralık Dışı Değerler için Örnek Kullanım</strong></p>
<div>
<div>
<div id="highlighter_283465">
<pre class="line-numbers"><code class="language-sql">DECLARE @i TINYINT
SET @i = 260
PRINT @i</code></pre>
</div>
</div>
<p><strong>Sonuç</strong></p>
<p>Msg 220, Level 16, State 2, Line 2<br />
Arithmetic overflow error for data type tinyint, value = 260.</p>
<p><strong>Negatif Değer Saklamada Örnek Kullanım</strong></p>
<div>
<div id="highlighter_105101">
<pre class="line-numbers"><code class="language-sql">DECLARE @i TINYINT
SET @i = -150
PRINT @i</code></pre>
</div>
</div>
<p><strong>Sonuç</strong></p>
<p>Msg 220, Level 16, State 2, Line 2<br />
Arithmetic overflow error for data type tinyint, value = -150.</p>
<p><strong>Hem Tinyint hem de Smallint Aralık Değerinin Dışında Örnek Kullanım</strong></p>
<div>
<div id="highlighter_392577">
<pre class="line-numbers"><code class="language-sql">DECLARE @i TINYINT
SET @i = 32768
PRINT @i</code></pre>
</div>
</div>
<p><strong>Sonuç</strong></p>
<p>Msg 220, Level 16, State 2, Line 2<br />
Arithmetic overflow error for data type tinyint, value = 32768.</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>
</div>
<div>-32,768 (-2<sup>15</sup>)</div>
<div></div>
<p><strong>Maximum Değer</strong></p>
<div>32,767 (2<sup>15-1</sup>)</div>
<div></div>
<p><strong>Örnek Kullanım</strong></p>
<div>
<div>
<div id="highlighter_274630">
<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>Değerin Saklanması için Değişken Tarafından Kullanılan Boyut</strong></p>
<div>
<div id="highlighter_915450">
<pre class="line-numbers"><code class="language-sql">DECLARE @i SMALLINT
SET @i = 150
PRINT DATALENGTH( @i)</code></pre>
</div>
</div>
<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_307253">
<pre class="line-numbers"><code class="language-sql">DECLARE @i SMALLINT
SET @i = 260
PRINT @i</code></pre>
</div>
</div>
<p><strong>Sonuç</strong><br />
260</p>
<p><strong>Negatif Değer Saklamada Örnek Kullanım</strong></p>
<div>
<div id="highlighter_866196">
<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 Tinyint hem de Smallint Aralık Değerinin Dışında Örnek Kullanım</strong></p>
<div>
<div id="highlighter_353432">
<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>Herkese çalışma hayatında ve yaşamında başarılar kolaylıklar.</p>
</div>
<div class='epvc-post-count'><span class='epvc-eye'></span>  <span class="epvc-count"> 2.506</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
