摘要:
for (int i = 1; i <= 9; i++) { for (int j = 1; j <= i; j++) { Console.Write("{0}*{1}={2}\t", i, j, i * j); } Console.WriteLine(); } for (int i = 9; i 阅读全文
摘要:
select 跟踪单号 , b.pm,b.sh,b.wkgg,b.wbxh,b.ljxh,b.khmc,b.chcpmc,b.ms, sum(case when 生产部门='打包' then 1 else 0 end ) 打包, sum(case when 生产部门= '二次曝光' then 1 e 阅读全文
摘要:
本文使用的方法: 1、用Case When 2、PIVOT函数 首先,模拟一张表: -- 创建模拟数据CREATE TABLE #TempSubjectResult(StudentName NVARCHAR(50) NOT NULL,StudentSubject NVARCHAR(50) NOT N 阅读全文