摘要:
group by 写在where语句后面 注意:聚合时,不能直接和普通列一起查询显示 select count(姓名) 总人数 ,max(总学分) 最高分 from xs select count(*) as 总人数 from xs 查询每个专业有多少人?select 专业名,count(姓名) 总 阅读全文
摘要:
创建一个通过姓名,获得考试信息的方法,注意表值函数不要用begin……end create function f_GetByName( @name varchar(50))returns tableas return (SELECT xs.姓名, kc.课程名, xs_kc.成绩FROM xs IN 阅读全文
摘要:
--查询学生的个数 select count(性别) as 男生 from xs where 性别=1 --总学分最高的人的姓名select max(总学分)as 最高分,count(姓名) as 总人数,avg(总学分) as 平均分 ,sum(总学分) as sum总学分,min(总学分) as 阅读全文
摘要:
with encryption 存过加密alter proc p_ceshi asselect * from dbo.users 创建一个存过,用来显示学生姓名,课程名,成绩create procedure p_xsinfoasselect * from xs join xs_kc on xs.学号 阅读全文
摘要:
print 'lis'********************************tigger触发器***************create trigger t_xson 学生表for deleteasprint '你别瞎搞啊,我其实一直在关注你'insert into 学生表 (姓名) se 阅读全文
摘要:
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatibl 阅读全文
摘要:
1.安装:npm install cube-ui -S 2.修改 .babelrc:(添加到plugins中去) { "plugins": [ ["transform-modules", { "cube-ui": { "transform": "cube-ui/lib/${member}", "kebabCase": true, "style": { "ignore": ["crea... 阅读全文