1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
Declare @sTable table ( nIndex int , sName varchar(16) , sID varchar(16)) Insert @Table values(1,'1','1') Insert @Table values(2,'2','2') Insert @Table values(3,'3','3') Insert @Table values(4,'4','4') Insert @Table values(5,'5','5') --values=> --Select* --From sTest --Where Index = 45 Select * From @sTable |