Select * from test where first column> 3
Solution:
Select [name] from syscolumns where id = Object_id ('TableName') And color = 1
oral
Declare @fdname sysnameselect @ fdname = name from syscolumns where id = Object_id ('test') And color = 1exec ('select * from test where [' @ fdname ']> 3')