易截截图软件、单文件、免安装、纯绿色、仅160KB

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  
);   
/*==========查


相关文档:

Oracle异常问题解决方案


1. 在打开Enterprise Manager Consol时报错: "找不到目标主机";
【解决方案】该问题在使用Ghost制作的系统中常见, 出错原因是Oracle中配置的主机名
 和实际的主机名不一致. 解决方法如下: 
 (1) Enterprise Manager Consol -> 工具菜单 ->服务管理 -> Oracle Net Manager;
 (2) 将"本地 ......

北大青鸟oracle学习笔记25

过程中的事务
定义过程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;
执行完毕发现 ......

Install Oracle 10g on SuSE 10

这次的经历是自己找来的,在安装了10g的那台机上升级下内存也便能忽悠那群友,不过想想还是折腾下吧,给移到配置好点的Server上面,他们用起来顺心,我自己也能折腾点经验。
132的系统是SuSE10.2的,之前已经安装了Oracle 9i,这就意味着必须先卸载掉9i,本以为安装10g的runInstaller能够卸载掉9i,可尝试了好久都是出现ex ......

Oracle, DB2 及 MySQL 分页查询写法

 
现在在WEB 应用中使用分页技术越来越普遍了,其中利用数据库查询分页是一种效率比较高的方法,
下面列出了Oracle, DB2  及 MySQL 分页查询写法。
一:Oracle
select * from (select rownum,name from table where rownum <=endIndex )
where rownum > startIndex
二:DB2
DB2分页查询
SELECT * ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号