Testing table Vars

0

Please login or register to vote for this query.

(click on this box to dismiss)

Testing table Vars

スタック・オーバーフロー

プログラマーとプログラミングに熱心な人々のための質問と回答

-- Testing table Vars
-- Testing table Vars

 BEGIN
DECLARE @t TABLE
(
  ID int,
  Name varchar(255)
)

INSERT INTO @t (ID, Name)

  SELECT Id,TagName

    FROM [Tags]
    where
TagName like 'web-development'
or TagName like 'android'
or TagName like 'windows'
or TagName like 'delphi'
or TagName like 'django'
or TagName like 'python'
or TagName like 'C'
or TagName like 'bash'
or TagName like 'linux'
or TagName like 'homework'
or TagName like 'c#'
or TagName like '.net'
or TagName like 'sql'
or TagName like 'sql-server'
or TagName like 'java-script'
or TagName like 'css'
or TagName like 'java'
or TagName like 'ruby'
or TagName like 'ruby-on-rails'
or TagName like 'wpf'
or TagName like 'iphone';




 select * from @t;
    PRINT 'It is the weekend.'
     PRINT 'Get some rest!'

 END

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results