﻿<?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 Server’da Datetime Kolonu &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sql-serverda-datetime-kolonu/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Tue, 19 Oct 2021 21:20:47 +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 Datetime Kolonundaki Saati Güncellemek</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-datetime-kolonundaki-saati-guncellemek</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Fri, 20 Mar 2020 20:46:09 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Datetime Kolonundaki Saati Güncellemek]]></category>
		<category><![CDATA[SQL Server’da Datetime Kolonu]]></category>
		<category><![CDATA[SQL Server’da Datetime Kolonundaki Saati Güncellemek]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=9610</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server&#8217;da Datetime kolonundaki saati güncellemek hakkında bilgi vereceğim. SQL Server&#8217;da bazı durumlarda Datetime kolonundaki saati güncellemek isteyebiliriz. İlk olarak aşağıdaki...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server&#8217;da Datetime kolonundaki saati güncellemek hakkında bilgi vereceğim.</p>
<p>SQL Server&#8217;da bazı durumlarda Datetime kolonundaki saati güncellemek isteyebiliriz.</p>
<p>İlk olarak aşağıdaki makaleyi okuyun. Çünkü bu makalede kullanılan fonksiyonu aşağıdaki makalede yazdım.</p>
<div style="clear:both; margin-top:0em; margin-bottom:1em;"><a href="https://sqlserveregitimleri.com/sql-serverda-random-saat-degerleri-olusturan-fonksiyon" target="_blank" rel="dofollow" class="ua3a39ebfc531c8e0e899feec879646d3"><style> .ua3a39ebfc531c8e0e899feec879646d3 , .ua3a39ebfc531c8e0e899feec879646d3 .postImageUrl , .ua3a39ebfc531c8e0e899feec879646d3 .centered-text-area { min-height: 80px; position: relative; } .ua3a39ebfc531c8e0e899feec879646d3 , .ua3a39ebfc531c8e0e899feec879646d3:hover , .ua3a39ebfc531c8e0e899feec879646d3:visited , .ua3a39ebfc531c8e0e899feec879646d3:active { border:0!important; } .ua3a39ebfc531c8e0e899feec879646d3 .clearfix:after { content: ""; display: table; clear: both; } .ua3a39ebfc531c8e0e899feec879646d3 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #3498DB; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .ua3a39ebfc531c8e0e899feec879646d3:active , .ua3a39ebfc531c8e0e899feec879646d3:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #E74C3C; } .ua3a39ebfc531c8e0e899feec879646d3 .centered-text-area { width: 100%; position: relative; } .ua3a39ebfc531c8e0e899feec879646d3 .ctaText { border-bottom: 0 solid #fff; color: #FFFFFF; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .ua3a39ebfc531c8e0e899feec879646d3 .postTitle { color: #FFFFFF; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .ua3a39ebfc531c8e0e899feec879646d3 .ctaButton { background-color: #2980B9!important; color: #FFFFFF; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://sqlserveregitimleri.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .ua3a39ebfc531c8e0e899feec879646d3:hover .ctaButton { background-color: #C0392B!important; } .ua3a39ebfc531c8e0e899feec879646d3 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .ua3a39ebfc531c8e0e899feec879646d3 .ua3a39ebfc531c8e0e899feec879646d3-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .ua3a39ebfc531c8e0e899feec879646d3:after { content: ""; display: block; clear: both; } </style><div class="centered-text-area"><div class="centered-text" style="float: left;"><div class="ua3a39ebfc531c8e0e899feec879646d3-content"><span class="ctaText"></span>&nbsp; <span class="postTitle">SQL Server’da Random Saat Değerleri Oluşturan Fonksiyon</span></div></div></div><div class="ctaButton"></div></a></div>
<p>Aşağıdaki örnek kod yardımıyla bu işlemi rahatlıkla yapabilirsiniz.</p>
<pre class="line-numbers"><code class="language-sql">--Örnek tablo oluşturma

CREATE TABLE Tarihler
(
    ID INT PRIMARY KEY IDENTITY(1, 1),
    Tarih DATETIME
);

--Tablo içine örnek veri eklenmesi

INSERT INTO Tarihler
(
    Tarih
)
VALUES
('2012-06-07 23:59:59'),
('2012-06-07 15:40:59'),
('2012-06-07 18:40:59');


--Tablo kontrol edilmesi

SELECT *
FROM Tarihler t;

--1 ve 3 numaralı ID değerlerinin güncellenmesi

UPDATE Tarihler
SET Tarih = CONVERT(VARCHAR(10), Tarih, 120) + ' ' + dbo.IkiSaatArasiDegerOlusturma('12:00:00', '13:00:00')
WHERE ID IN ( 1, 3 );</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-9613 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2020/03/sql-serverda-datetime-kolonundaki-saati-guncellemek-1.jpg" alt="SQL Server’da Datetime Kolonundaki Saati Güncellemek" width="700" height="446" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2020/03/sql-serverda-datetime-kolonundaki-saati-guncellemek-1.jpg 700w, https://sqlserveregitimleri.com/wp-content/uploads/2020/03/sql-serverda-datetime-kolonundaki-saati-guncellemek-1-315x201.jpg 315w, https://sqlserveregitimleri.com/wp-content/uploads/2020/03/sql-serverda-datetime-kolonundaki-saati-guncellemek-1-471x300.jpg 471w, https://sqlserveregitimleri.com/wp-content/uploads/2020/03/sql-serverda-datetime-kolonundaki-saati-guncellemek-1-212x135.jpg 212w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere 1 ve 3 numaralı ID değerlerinin saatleri güncellenmiş 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"> 897</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
