MSSQL variable columns name?
        Posted  
        
            by Petr
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Petr
        
        
        
        Published on 2010-04-28T06:59:07Z
        Indexed on 
            2010/04/28
            7:03 UTC
        
        
        Read the original article
        Hit count: 213
        
tsql
Hi, I am wondering why I cannot use variable column name like that:
declare @a as varchar;
set @a='TEST'
select @a from x;
Thank you
© Stack Overflow or respective owner