SQL
FYANGFEI
各人有各人的隐晦与皎洁
展开
-
数据库管理系统的三级模式与两级映像
1.数据库系统的三级模式结构:数据库系统的三级模式结构是指数据库系统是由外模式、模式和内模式三级构成,如图:①模式(schema):模式也称逻辑模式,是数据库中全体数据的逻辑结构和特征的描述,是所有用户的公共数据视图。它是数据库系统模式结构的中间层,既不涉及数据的物理存储细节,右与具体的应用程序、所使用的应用开发工具及高级程序设计语言无关。模式...原创 2019-12-01 20:52:21 · 2169 阅读 · 0 评论 -
VS2010,aspx连接SQLever2008R2,把数据库中的数据展示到网页
首先在自己的SQLsever中建立一个叫test1的数据库,(我的数据库是用的Windows身份验证所以连接字符串后面没有SQLSever的账号和密码) protected void Page_Load(object sender, EventArgs e) { SqlConnection conn =new SqlConnection...原创 2019-10-24 22:01:44 · 573 阅读 · 0 评论 -
Oracle SQL 函数 查询 详解
----子查询select * from emp;---查询和smith从事同一种工作的员工信息select * from emp wherejob=(select job from emp where ename='SMITH')----查询所有经理的信息---(select mgr from emp)查询结果为多行数据此处不能用等号要用关键字inselect * from ...原创 2018-08-15 18:22:28 · 1133 阅读 · 0 评论 -
Oracle 存储过程 触发器 游标 账号数据备份和复原 包管理
---存储过程create or replace procedurepro1(dno number,asal out number)isbegin select avg(sal) into asal from emp where deptno=dno;end;declarer number;begin pro1(10,r); dbms_output.put_...原创 2018-08-18 11:43:55 · 251 阅读 · 0 评论 -
Oracle SQL 序列 锁 位图 视图 事务 索引 分区 的理解笔记
--序列化对象create sequence seq_001increment by 1start with 1001nomaxvaluecreate table kind(kid int primary key,kname varchar2(200)) select * from kindinsert into kind values (se...原创 2018-08-16 17:43:44 · 333 阅读 · 0 评论 -
asp.net连接sqlever2008R2,
SqlConnection con = new SqlConnection("Data Source = (local);DataBase=Student;Trusted_Connection = true"); con.Open(); SqlCommand cmd = new SqlCommand(); cmd.CommandTe...原创 2019-09-29 21:54:07 · 308 阅读 · 0 评论 -
SQL Sever 入门,此SQL对应《数据库系统概论》
自己先建立了一个数据库Schoolcreate database School然后创建表下面的代码是我用SQLsever生成的SQL脚本USE [School]GO/****** Object: Table [dbo].[Student] Script Date: 10/06/2019 16:31:48 ******/SET ANSI_NULLS ONGOSET...原创 2019-10-08 21:17:05 · 733 阅读 · 0 评论