产生10000条连续记录

产生 10000 条连续记录
MS SQL SERVER 2000 下测试通过.
PRINT CONVERTVARCHAR GETDATE 
 id  aid  bid  cid  did  
from
  id   
 union all   
 union all   
 union all   
 union all   
 union all   
 union all   
 union all   
 union all   
 union all   
  a

  id   
 union all  
 union all   
 union all  
 union all   
 union all  
 union all   
 union all  
 union all   
 union all  
  b

  id   
 union all  
 union all   
 union all  
 union all   
 union all  
 union all   
 union all  
 union all   
 union all  
  c

  id   
 union all  
 union all   
 union all  
 union all   
 union all  
 union all   
 union all  
 union all   
 union all  
  d
order by id
PRINT CONVERTVARCHAR GETDATE 

你可能感兴趣的:(SQL)