摘要:
Microsoft Windows 服务(即,以前的 NT 服务)使您能够创建在它们自己的 Windows 会话中可长时间运行的可执行应用程序。这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面。这使服务非常适合在服务器上使用,或任何时候,为了不影响在同一台计算机上工作的其... 阅读全文
摘要:
1:对列进行逻辑判断select ID,Score,case when Score>=90 then 'A' when Score>=80 then 'B' when Score>=70 then 'C' when Score>=60 then 'D' when Score>=50 then 'E'... 阅读全文
摘要:
带有参数的视图 create function fn_fenye (@count as int,@page as int) returns table as return select * from (select row_number() over (order by id)as num... 阅读全文
摘要:
declare @subject nvarchar(50)set @subject=(select Subject from dbo.Scores where ID=1) --select @subject=Subject from dbo.Scores where ID=1--标量 标量就是单值... 阅读全文
摘要:
--计算1-100的和 declare @int int=1; declare @total int=0; while(@int<=100) begin set @total=@total+@int; set @int=@int +1; end select @total --计... 阅读全文