摘要:
数据库中数据为下图: 1.使用静态SQL select 姓名, max(case 课程 when '语文' then 分数 else 0 end)语文, max(case 课程 when '数学' then 分数 else 0 end)数学, max(case 课程 when '物理' then 分 阅读全文
摘要:
create trigger triggerStudent on Student after insert as declare @ID int; select @ID=classID from inserted update class set num=num+1 where ID=@ID 阅读全文
摘要:
declare @sizePage int=3 declare @currentPage int=2 select top 3 * from ( select ROW_NUMBER() over(order by ID asc) as RowNumber ,*from Product) as tem 阅读全文