Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

declare table variable

DECLARE @ListOWeekDays TABLE(DyNumber INT,DayAbb VARCHAR(40) , WeekName VARCHAR(40))
 
INSERT INTO @ListOWeekDays
VALUES 
(1,'Mon','Monday')  ,
(2,'Tue','Tuesday') ,
(3,'Wed','Wednesday') ,
(4,'Thu','Thursday'),
(5,'Fri','Friday'),
(6,'Sat','Saturday'),
(7,'Sun','Sunday')	
SELECT * FROM @ListOWeekDays
Source by www.sqlservertutorial.net #
 
PREVIOUS NEXT
Tagged: #declare #table #variable
ADD COMMENT
Topic
Name
2+4 =