Oracle HR样例数据库建立】的更多相关文章

Oracle和sqlserver都有基于员工信息的样例数据库,同样mysql上也是有的. 给出一个连接地址https://github.com/datacharmer/test_db. 下载后直接调用mysql -t < employees.sql完成这个数据导入,会在mysql中增加一个employees的数据库. 后面就可以在这个数据库上做测试了.…
1. 下载样例数据库文件 输入网址:http://www.codeplex.com/ , 搜索:microsoft sql server product samples 下载对应数据库的AdventureWorks文件,以[Microsoft SQL Server 2008 R2]为例: 2. 解压文件到对应的目录 将下载的文件解压放到:C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA 目录下(如果没有…
一.Introduction Sakila可以作为数据库设计的参考,也可作为实验数据.我是用作数据仓库和ODI学习的实验数据. The Sakila sample database was developed by Mike Hillyer, a former member of the MySQL AB documentation team, and is intended to provide a standard schema that can be used for examples i…
Oracle HR 例子用户的建立 10g,11g均可 先将附件(见文章尾部)上的 10 个 .sql 文件放入这个路径中 : $ORACLE_HOME/demo/schema/human_resources Script Name        Description hr_analz.sql Collects statistics on the tables in the schema. hr_code.sql Creates procedural objects in the schema…
-- 建表 CREATE TABLE sale_report (      sale_date DATE NOT NULL ,      sale_item VARCHAR(2) NOT NULL ,      sale_money DECIMAL(10,2) NOT NULL,      PRIMARY KEY(sale_date, sale_item) ); -- 測试数据 DECLARE v_begin_day DATE; v_end_day DATE; BEGIN v_begin_day…
SQL SEVER 2008数据库是什么我就不说了,我在这里分享一下怎样学习SQL SEVER 2008数据库,假设是对数据库或是SQL SEVER 数据库全然陌生或是不熟悉的人来说,建议看看一些视频教程.对数据库中包括的内容以及一些概念,常规操作有个感性的认识,对数据库有一定的感性认识之后.要深入学习SQL SEVER数据库.就应该使用在安装数据库的时候安装的--联机丛书--入手,深入学习SQL SEVER数据库,同一时候它就像msdn一样,也能够作为一个查询工具,在必要的时候,在上面查找sq…
此处有一个Oracle创建数据库和表和插入数据的脚本: http://www.forta.com/books/0672336073/…
大家可以自行网上找资源(网上资源比较多,不建议下载我的),也可以在我这里下载: 1.取得每个部门最高薪水的人员名称:正确   一共有4个单位,要进行左外连接 其中一个单位没得员工 SELECT dept.dname, emp.ename, emp.sal FROM emp RIGHT JOIN dept ON emp.deptno = dept.deptno RIGHT JOIN ( SELECT dept.dname, MAX(emp.sal) AS 'max_sal' FROM emp RI…
1.与MySQL连接 jar包下载地址: Class.forName("com.mysql.jdbc.Driver");//加载数据库驱动(MySQL的jar包) String url="jdbc:mysql://localhost:3306/mydb";//声明数据库的URL,mydb为数据库名称,3306为链接数据库的默认端口 String user="root";//数据库用户名 String password="";/…
[Oracle]数据库的Control File 取Dump后的样例: 片段截取-------------------------------(size = 40, compat size = 40, section max = 1225, section in-use = 1225,last-recid= 3899, old-recno = 219, last-recno = 218)(extent = 1, blkno = 244, numrecs = 1225)Earliest recor…