Created
April 29, 2014 05:19
-
-
Save vincent178/11391181 to your computer and use it in GitHub Desktop.
declare a variable in sql server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare @rr varchar(1000) | |
set @rr ='variable content' | |
select * from A | |
where A.SchoolDID = @rr | |
select top (1000)* from B | |
where B = @rr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment