
数据库原理
文章平均质量分 97
以SQL server为例
常欢愉皆胜意且顺遂
记得一定要努力,不然往后余生,做饭是你,洗衣是你,做家务是你……是你是你还是你
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Redis学习记录
文章目录NoSql概述为什么要用NoSqlNoSQL的四大分类Redis入门概述Linux环境安装redis测试性能基础知识五大数据类型Redis-keyStringListSetHashZset(有序集合)三种特殊数据类型geospatial地理位置HyperloglogBitmap事务Jedis常用API通过Jedis再次理解事物SpringBoot整合RedisRedisUtil实战记录Spring缓存Redis缓存RedisConfig.javaRedis.conf详解Redis持久化RDB(Red转载 2021-02-16 15:43:42 · 1191 阅读 · 1 评论 -
SQL server游标的几种用法
1、计算没有选课的学生人数,涉及到的表:student、sc--1、声明游标declare num_cursor cursorfor select sno from studentfor read only--2、打开游标open num_cursor--声明变量declare @sno char(20), @num intselect @num = 0--3、读取游标中的数据fetch next from num_cursorinto @snowhile @@FETCH_ST原创 2020-09-19 11:42:29 · 8123 阅读 · 0 评论 -
SQL server存储过程
语法:create proc myprocas...例1:从SC表中查询不及格课程超过3门的学生信息create proc myprocasselect*from studentwhere Sno in ( select sno from SC where Grade < 60 group by Sno having COUNT(*) > 3)exec myprocdrop proc myproc...原创 2020-09-19 11:41:51 · 1026 阅读 · 0 评论