Oracle 使用表总结
/*============创建Customer表==========*/
create table Customer
(
Customer_id number(6) not null,
Customer_name varchar2(50) not null,
Password varchar2(20) not null,
True_name varchar2(20),
Email_address varchar2(50) not null, --唯一
Password_question varchar2(50) not null,
Password_anwser varchar2(50) not null,
Status char(1), --默认是1,取值0或1
Customer_level char(1), --默认是1,取值1,2,3
Score number(6),
Register_date date, --默认为系统时间
Login_time timestamp,
Login_count number(6),
Login_ip char(6)
);
/*===========创建Orders表==========*/
create table Orders
(
Order_id varchar2(10) not null,
Order_Customer_id number(6) not null,
Order_date date not null,
Order_price number not null
);
/*==========查
相关文档:
http://tianzt.blog.51cto.com/459544/171759 仅仅供自己学习之用
此文从以下几个方面来整理关于分区表的概念及操作:
1.表空间及分区表的概念
2.表分区的具体作用
3 ......
1. 在打开Enterprise Manager Consol时报错: "找不到目标主机";
【解决方案】该问题在使用Ghost制作的系统中常见, 出错原因是Oracle中配置的主机名
和实际的主机名不一致. 解决方法如下:
(1) Enterprise Manager Consol -> 工具菜单 ->服务管理 -> Oracle Net Manager;
(2) 将"本地 ......
【实现步骤】
1. 创建表blog_info, 具有ID和title两个字段, 其中ID将设置为自动增长列;
2. 创建序列:
create sequence sq_blog_info
start with 1
increment by 1
nomaxvalue
nocycle
......
过程中的事务
定义过程p1
create or replace procedure p1
as
begin
insert into student values(5,'xdh','m',sysdate);
rollback;
end;
定义过程p2
create or replace procedure p2
as
begin
update student set stu_sex = 'a' where stu_id = 3;
p1;
end;
执行过程p2
exec p2;
执行完毕发现 ......
下面两篇文章全部是转帖~
原地址:http://www.im80hou.com/html/oracle/2009/0722/824.html
理论:
内存与硬盘的速度差异,从内存中读取数据要比从硬盘中读取数据快10000倍
众所周知,从内存中读取数据要比从硬盘中读取数据快10000倍。这主要是内存与硬盘的速度差异所造成的。为此在Oracle数据库中提出一个数据缓存的 ......