declare @s varchar(max) select @s=isnull(@s+',','')+name from sys.columns where object_id=object_id('tb') and name not in('f1','f2') select @s='select '+@s+' from tb' select @s /* select F3 from tb */
34,594
社区成员
254,589
社区内容
加载中
试试用AI创作助手写篇文章吧