oracle下scott用户的四张表(emp,dept,bonus,salgrade)的建表语句:
来源:互联网 发布:软件开发工程师考试 编辑:程序博客网 时间:2024/05/05 07:20
scott用户的四张表(emp,dept,bonus,salgrade)的建表语句
- emp
-- Create tablecreate table EMP( empno NUMBER(4) not null, ename VARCHAR2(10), job VARCHAR2(9), mgr NUMBER(4), hiredate DATE, sal NUMBER(7,2), comm NUMBER(7,2), deptno NUMBER(2))tablespace USERS pctfree 10 initrans 1 maxtrans 255 storage ( initial 64K next 1M minextents 1 maxextents unlimited );-- Create/Recreate primary, unique and foreign key constraints alter table EMP add constraint PK_EMP primary key (EMPNO) using index tablespace USERS pctfree 10 initrans 2 maxtrans 255 storage ( initial 64K next 1M minextents 1 maxextents unlimited );alter table EMP add constraint FK_DEPTNO foreign key (DEPTNO) references DEPT (DEPTNO);
- dept
-- Create tablecreate table DEPT( deptno NUMBER(2) not null, dname VARCHAR2(14), loc VARCHAR2(13))tablespace USERS pctfree 10 initrans 1 maxtrans 255 storage ( initial 64K next 1M minextents 1 maxextents unlimited );-- Create/Recreate primary, unique and foreign key constraints alter table DEPT add constraint PK_DEPT primary key (DEPTNO) using index tablespace USERS pctfree 10 initrans 2 maxtrans 255 storage ( initial 64K next 1M minextents 1 maxextents unlimited );
- bonus
-- Create tablecreate table BONUS( ename VARCHAR2(10), job VARCHAR2(9), sal NUMBER, comm NUMBER)tablespace USERS pctfree 10 initrans 1 maxtrans 255;
- salgrade
-- Create tablecreate table SALGRADE( grade NUMBER, losal NUMBER, hisal NUMBER)tablespace USERS pctfree 10 initrans 1 maxtrans 255 storage ( initial 64K next 1M minextents 1 maxextents unlimited );
0 0
- oracle下scott用户的四张表(emp,dept,bonus,salgrade)的建表语句:
- oracle scott 用户下emp,dept,bonus等表的关联查询
- Oracle10g学习笔记之Scott的所有表结构及字段含义(一) EMP,DEPT ,BONUS,SALGRADE表
- Oracle10g学习笔记之Scott的所有表结构及字段含义之EMP,DEPT ,BONUS,SALGRADE表
- oracle 关于scott 下emp dept表的修复
- oracle数据库scott用户下的EMP表、DEPT表的各种查询
- Oracle建emp,dept,salgrade 表
- Oracle Scott命名下的建表语句
- 根据Oracle数据库scott模式下的scott.emp表和dept表,完成下列操作.
- 学习SAP HANA SQL 语句(创建 EMP,DEPT,BONUS 和 SALGRADE测试表)--像学Oracle一样学习SAP HANA
- 有关Oracle 的查询语句的几个小练习(针对ORCL数据库的emp,dept,salgrade等数据表)
- Oracle初学者需要知道的常用数据表如EMP、DEPT、SALGRADE等是如何操作的?图解操作
- Oracle初学者需要知道的常用数据表如EMP、DEPT、SALGRADE等是如何操作的?图解操作
- 韩顺平 oracle 视频 emp dept salgrade 表 sql 数据
- 关于Scott Schema下emp和dept表的查询练习
- dept表与 emp表结构与BONUS表结构与SALGRADE表结构与数据
- oracle的建表语句
- Scott建表语句
- SVN更新失败,提示locked 怎么破!
- python2.7 配置numpy Matplotlib 及其依赖项
- Echarts使用心得总结(二)
- Jquery操作复选框(CheckBox)的取值赋值实现代码
- elastalert (support_es5分支) + elasticsearch 5.1 最简单的寻找关键字报警
- oracle下scott用户的四张表(emp,dept,bonus,salgrade)的建表语句:
- mysql插入数据后返回自增ID的方法
- 【ife】任务三十二:表单(四)实现表单自动生成工厂
- Gradle for Android系列之五 多渠道打包
- S/4 HANA – 是ERP皇帝的新装,还是SAP王国的新基石
- ui-grid cannot rendered correctly when using ng-show/ng-hide, if you press F12 on the keyboard, it c
- JAVA之使用键盘输入数据
- java图片裁剪和java生成缩略图
- String的trim()方法无效的解决办法