11 2017 档案

摘要:临时表: 1》 创建临时表(事务级别):commit 之后会被清空 Create global temporary table tabel_name( Id number(10), Name varchar(10), Password varchar(10) )on commit delete ro 阅读全文
posted @ 2017-11-25 19:57 楷兵 阅读(236) 评论(0) 推荐(0)
摘要:用户: 创建用户: Create user user_name Identified by password Default tablespace tablespace_name Quota 30M on tablespace_name Password expire Account unlock; 阅读全文
posted @ 2017-11-23 22:25 楷兵 阅读(173) 评论(0) 推荐(0)
摘要:控制文件 1》 查看控制文件信息 v$controlfile Select name from v$controlfile 2》 创建控制文件 a) 查询数据文件(记录下来) Select name from v$datafile; b) 查询日志文件(记录下来) Select group#,mem 阅读全文
posted @ 2017-11-22 21:27 楷兵 阅读(271) 评论(0) 推荐(0)
摘要:创建表: Create table username.table_name(/*username 可以没有*/ Sid number(2) primary key, /*定义主键 可以没有*/ Nane varchar2(20) not null, Age number(3), Constraint 阅读全文
posted @ 2017-11-19 20:28 楷兵 阅读(380) 评论(0) 推荐(0)
摘要:普通表空间: 1》 创建表空间: Create tablespace tablespace_name Datafile ‘E:\oracle\tablespace_datafile.dbf’ size 20M Autoextend on Next 5M Maxsize 50M; 2》 添加数据文件: 阅读全文
posted @ 2017-11-17 20:36 楷兵 阅读(1633) 评论(0) 推荐(0)