日期:2014-05-18 浏览次数:20431 次
select sum(case type when 'U' then 1 else 0 end) as tablen, --,号 sum(case type when 'V' then 1 else 0 end) as tablev from bkysbase.dbo.sysobjects
------解决方案--------------------
select sum(case type when 'U' then 1 else 0 end) as tablen, sum(case type when 'V' then 1 else 0 end) as tablev from sysobjects tablen tablev 131 362 本机测试结果