如何是好???
有一个字符串1,2,3,4,5,6,7,8,55 
 现在想用SELECT语句把字符串中的数字查询为1列显示。 
 查询结果,例如: 
 Result 
 1 
 2 
 3 
 4 
 5 
 6 
 7 
 8 
 55   
 这个SELECT语句应该怎么写 
------解决方案--------------------declare @str varchar(1000) 
 set @str= '1,2,3,4,5,6,7,8,55 ' 
 set @str= 'select  '+replace(@str, ', ', ' union all select  ') 
 print @str 
 exec(@str) 
------解决方案--------------------Declare @S Varchar(1000),@S1 Varchar(1000) 
 Set @S= '1,2,3,4,5,6,7,8,55 ' 
 Set @S1= ' ' 
 Select @S1= 'Select [字符串]= '+@S1+Replace(@S, ', ', ' Union All Select  ') 
 Print @S1 
 Exec(@S1)
------解决方案----------------------这个好像有人问过?一模一样.   
 declare @str varchar(8000) 
 set @str= '1,2,3,4,5,6,7,8,55 '   
 set @str= 'select  '+replace(@str, ', ', ' union all select  ')   
 exec(@str)