08 2020 档案
摘要:1 select c.PayForYear,c.DptID,c.ZongShu,c.HasPayShu,c.NoPayShu 2 --,d.DepName 3 from ( 4 select PayForYear,DptID 5 ,isnull(Count(PartyMemberID),0) as
阅读全文
摘要:1. 获取当前日期 select GETDATE() 格式化: select CONVERT(varchar,GETDATE(),120) --2017-05-12 16:33:10 2. 获取当前年 --2017 select DATENAME(YYYY,GETDATE()) --2017 sel
阅读全文
摘要:1、添加字段 alter table 表名 add 字段名 type not null default 0 2、修改字段名 alter table 表名 rename column A to B 3、修改字段类型 alter table 表名 modify column UnitPrice deci
阅读全文

浙公网安备 33010602011771号