费尽心里写了好半天的有史以来写过的最长的存储过程,不是什么机密的东西,贴在这里,以资纪念,:)
 1写了好半天的有史以来写过的最长的存储过程CREATE PROCEDURE dbo.list_taoke    
 2写了好半天的有史以来写过的最长的存储过程AS
 3


更新于: 2006年11月22日 下午
发现上面的存储过程可以被一句SQL取代,如下:
写了好半天的有史以来写过的最长的存储过程select top 50 * from 
写了好半天的有史以来写过的最长的存储过程
写了好半天的有史以来写过的最长的存储过程
select  distinct author as uid ,info_count=(select count(0from info where info.author=t.author ),
写了好半天的有史以来写过的最长的存储过程exp_count
=(select count(0from info where info.author=t.author and exp>2)
写了好半天的有史以来写过的最长的存储过程 
from info t where infolawid>0  
写了好半天的有史以来写过的最长的存储过程
as x order by x.exp_count desc

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-10-04
  • 2022-02-09
  • 2021-05-26
  • 2022-12-23
  • 2021-10-15
猜你喜欢
  • 2022-02-07
  • 2021-11-17
  • 2021-10-22
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案