Gebze Motosiklet Kulübü Forumları
Teknik (Bilişim) Geçici Tablo Oluşturmak - Yazdırılabilir Sürüm

+- Gebze Motosiklet Kulübü Forumları (https://gebzemoto.com/forum)
+-- Forum: GMK Kafe (https://gebzemoto.com/forum/forumdisplay.php?fid=1)
+--- Forum: Sohbet & Muhabbet (https://gebzemoto.com/forum/forumdisplay.php?fid=3)
+---- Forum: Dökümanlar (https://gebzemoto.com/forum/forumdisplay.php?fid=15)
+---- Konu: Teknik (Bilişim) Geçici Tablo Oluşturmak (/showthread.php?tid=2434)



Geçici Tablo Oluşturmak - VeYSeL - 06-04-2013

Sıra ve Etiket Fieldlarına sahip geçici tablo oluşturma komutu, DB bağlantısı yenilendiğinde tablo drop olur.

Kod:
IF EXISTS(SELECT 1 FROM tempdb..sysobjects WHERE name LIKE '#TABLO_:SPID_%')
    DROP TABLE #TABLO
    
CREATE TABLE #TABLO(
[SIRA] [smallint] NULL,
[ETIKET] [nvarchar](50) NULL,
)
INSERT INTO #TABLO(SIRA,ETIKET) values('2','test');

select * from #TABLO