该文被密码保护。 阅读全文
posted @ 2011-07-21 21:21 jex 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2011-07-21 21:19 jex 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2011-07-21 21:13 jex 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2011-07-21 20:57 jex 阅读(3) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2011-07-21 20:49 jex 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2011-07-21 20:44 jex 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2011-07-21 20:16 jex 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2011-07-21 20:00 jex 阅读(3) 评论(0) 推荐(0) 编辑
摘要: SELECT ROUND( number, [ decimal_places ] ) FROM DUAL说明:number : 将要处理的数值decimal_places : 四舍五入,小数取几位,不填默认为0Sample :select round(123.456) from dual; 结果: 123 select round(123.456, 0) from dual; 结果: 123 select round(123.456, 1) from dual; 结果: 123.5 select round(123.456, 2) from dual; 结果:123.46 select rou 阅读全文
posted @ 2011-07-21 19:35 jex 阅读(273) 评论(0) 推荐(0) 编辑
摘要: test.sql内容:create or replace procedure ptest001 isbeginnull;end ptest001;/create or replace procedure ptest002 isbeginnull;end ptest002;/create or replace procedure ptest003 isbeginnull;end ptest003;/create or replace procedure ptest004 isbeginnull;end ptest004;/create or replace procedure ptest005 阅读全文
posted @ 2011-07-21 19:32 jex 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1、全角转半角函数 TO_SINGLE_BYTE 2、数字转英文,利用to_char、to_date 3、sys_guid()1、全角转半角函数 TO_SINGLE_BYTESQL> select TO_SINGLE_BYTE('oracle') from dual;TO_SINGLE_BYTE('ORACLE')------------------------------oracle2、数字转英文,利用to_char、to_dateSQL> select to_char(to_date('12345','J'),&# 阅读全文
posted @ 2011-07-21 19:29 jex 阅读(724) 评论(0) 推荐(0) 编辑
摘要: create sequence seq2start with 0 --起始值increment by 1 --步长maxvalue 4999 --最大值minvalue 0 --最小值cycle --循环cache 4 --缓存4个数create table testa(ins number(4) primary key,nm varchar2(20));-- Created on 2007-10-17 by YCZ declare -- Local variables herei integer;begin-- Test statements herefor i in 1..5000 loo 阅读全文
posted @ 2011-07-21 19:29 jex 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Oracle的sql*plus是与oracle进行交互的客户端工具。在sql*plus中,可以运行sql*plus命令与sql*plus语句。我们通常所说的DML、DDL、DCL语句都是sql*plus语句,它们执行完后,都可以保存在一个被称为sql buffer的内存区域中,并且只能保存一条最近执行的sql语句,我们可以对保存在sql buffer中的sql 语句进行修改,然后再次执行,sql*plus一般都与数据库打交道。除了sql*plus语句,在sql*plus中执行的其它语句我们称之为sql*plus命令。它们执行完后,不保存在sql buffer的内存区域中,它们一般用来对输出的结 阅读全文
posted @ 2011-07-21 19:27 jex 阅读(108) 评论(0) 推荐(0) 编辑
摘要: oralce定时执行存储过程任务设置步骤详细:【 功 能 描 述】:每隔一分钟自动向getSysDate表中插入当前的系统时间。【一、创测试表】create table getSysDate(test date);【二、创要定时执行的存储过程】create or replace procedure insertSysDate as begin insert into getSysDate values (sysdate);end ;【三、创建JOB,即创建待执行的定时任务过程】variable job1 number;begindbms_job.submit(:job1,'insert 阅读全文
posted @ 2011-07-21 19:25 jex 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 本文是Oracle技术人员求职面试题集锦,答案仅供参考…… 1. 解释冷备份和热备份的不同点以及各自的优点 解答:热备份针对归档模式的数据库,在数据库仍旧处于工作状态时进行备份。而冷备份指在数据库关闭后,进行备份,适用于所有模式的数据库。热备份的优点在于当备份时,数据库仍旧可以被使用并且可以将数据库恢复到任意一个时间点。冷备份的优点在于它的备份和恢复操作相当简单,并且由于冷备份的数据库可以工作在非归档模式下,数据库性能会比归档模式稍好。(因为不必将archive log写入硬盘) 2. 你必须利用备份恢复数据库,但是你没有控制文件,该如何解决问题呢? 解答:重建控制文件,用带backup co 阅读全文
posted @ 2011-07-21 19:23 jex 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 数据字典dict总是属于Oracle用户sys的。 1、用户: select username from dba_users; 改口令 alter user spgroup identified by spgtest; 2、表空间: select * from dba_data_files; select * from dba_tablespaces;//表空间 select tablespace_name,sum(bytes), sum(blocks) from dba_free_space group by tablespace_name;//空闲表空间 select * from dba 阅读全文
posted @ 2011-07-21 19:22 jex 阅读(223) 评论(0) 推荐(0) 编辑
摘要: --列转行CREATE TABLE t_col_row(ID INT,c1 VARCHAR2(10),c2 VARCHAR2(10),c3 VARCHAR2(10));INSERT INTO t_col_row VALUES (1, 'v11', 'v21', 'v31');INSERT INTO t_col_row VALUES (2, 'v12', 'v22', NULL);INSERT INTO t_col_row VALUES (3, 'v13', NULL, 'v33'); 阅读全文
posted @ 2011-07-21 19:22 jex 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 用法if ... then ... elsif ... then ... else ... end if; if ... then ... else ... end if; if ... then ... end if; 阅读全文
posted @ 2011-07-21 19:00 jex 阅读(3562) 评论(0) 推荐(0) 编辑
摘要: DataGrid是一个功能非常强大的ASP.NET Web服务器端控件,它除了能够方便地按各种方式格式化显示表格中的数据,还可以对表格中的数据进行动态的排序、编辑和分页。使Web开发人员从繁琐的代码中解放。实现DataGrid的分页功能一直是很多初学ASP.NET的人感到棘手的问题,特别是自定义分页功能,实现方法多种多样,非常灵活。本文将向大家介绍一种DataGird控件在Access数据库下的快速分页法,帮助初学者掌握DataGrid的分页技术。目前的分页方法DataGrid内建的分页方法是使用诸如“SELECT * FROM <TABLE>”的SQL语句从数据库表中取出所有的记 阅读全文
posted @ 2011-07-21 15:14 jex 阅读(290) 评论(0) 推荐(0) 编辑
摘要: The table below shows the ADO Data Type mapping between Access, SQL Server, and Oracle:DataType EnumValueAccessSQLServerOracleadBigInt20BigInt (SQL Server 2000 +)adBinary128BinaryTimeStampRaw *adBoolean11YesNoBitadChar129CharCharadCurrency6CurrencyMoneySmallMoneyadDate7DateDateTimeadDBTimeStamp135Da 阅读全文
posted @ 2011-07-21 15:08 jex 阅读(424) 评论(0) 推荐(0) 编辑