一、查询某个字段重复
select *
from User u
where u.user_name in (select u.user_name
from User u
group by u.user_name having count(*) > 1)
二,删除表中某几个字段的重复
例:表中有条六条记录。 其中张三和王五 的记录有重复
TableA
id customer PhoneNo
001 张三 777777
002 李四 444 ......
博彦科技Oracle erp免费讲座
作为Oracle公司官方授权培训机构,博彦Oracle erp专业认证专家课程在北京、上海同步开展Oracle erp培训课程。
Oracle电子商务套件 R12 财务应用软件能够自动化并简化客户的财务业务流程,帮助企业获得企业范围内的日常商务智能,从而做出更明智的决策、改进运营并节约成本。统一的数据模型为所有的财务信息提供了单一精确的视图,也包括360度的客户全景。Oracle提供财务模块深度培训,帮助企业应用系统获得行业领先的性能和可扩展性。
博彦Oracle erp顾问学院应广大学员的强烈要求,特在北京及上海举办Oracle电子商务套件R12财务应用的免费讲座,具体课内容安排如下:
No
课程名称
课程描述
时间
1
R12 Oracle 电子商务套件实施规划指南
介绍R12应用系统的基本操作
2010
待定
2
R12 Oracle 总账管理基础
介绍R12总帐标准功能的操作和设置
3
R12 Oracle 应付管理基础
介绍R12应付发票、应付款项和网上费用核销等强大功能
讲座地址:待定
咨询电话:010---82826100--2246 郝小姐
报名表下载:http://edu.beyondsoft.com/images/upfile/20091020145656481.doc 填写好报名表发至 &nb ......
原则:凡是Reference相关的文档都无需精读,碰到问题时速查即可
1.ORACLE新功能
Oracle Database New Features Guide
每次新版本的ORACLE RELEASE以后,看一下《Oracle Database New Features Guide》,以了解一下最新的FEATURE,此文档可以粗略地阅读,不需精读。
2.ORACLE,RDBMS的概念及体系结构
Oracle Database Concepts
入门级,系统级地读物。如果你想了解ORACLE的相关概念和体系结构,《Oracle Database Concepts》是不错的文档。另外,从这个文档中,你可以了解到其它的文档中提及的名词和概念。如果你从未接触过ORACLE,这个文档是很好的入门读物。
3.ORACLE数据库管理
Oracle Database Administrator's Guide
作为DBA,《Oracle Database Administrator's Guide》是必须要看的一本书。此书要精读。如果你想参加ORACLE的认证,如考OCA或OCP,则Oracle University(简称OU)在培训时会发给你与认证课程相配的教材(OU称之为Student Guide),并且有课程代号和教材编号,如:
lzo-042:Oracle 10g Administration I: Oracle Database 10g Administration Workshop I
lzo-043:Oracle 10g Administration II: Oracl ......
HOW TO SETUP ORACLE ON A RAW PARTITION
What is a Raw device and what is the advantage of having a Raw device?
A Raw device, or a Raw disk partition, is a hardware device that is
supported
by a character device driver. Raw devices are not buffered by the kernel;
the data is transferred directly between the user's buffers and the device.
This direct transfer makes the I/O operation much faster when compared to
FAT
and NTFS file systems. So, if you are I/O bound with your system, you may
want to locate your log and datafiles to RAW partitions to gain I/O
performance.
The trade-off of the raw partition choice is restricted configuration
options. Each RAW partition equates to a single file and is represented by
a
single file which is then represented by a single drive letter.
How to create a RAW partition on Windows NT
............................................................................
.
After the installation of Oracle on FAT or N ......
问题:请教HINT写法
我有一个SQL添加如下hint,目的是指定hash_join方式。
select /*+ordered use_hash(a,b,c,d) */ *
from a,b,c,d
Where ...
其中,
a只与b有关联关系,b只与c有关联关系,b只与c有关联关系,c只与d有关联关系,
数量级:a:1000条, b:100 万条, c:800万条 , d:100万条
执行计划为:
Hash Join
---Hash Join
----- Hash Join
------ a
----- b
----- c
---d
考虑到d表比较小,我能不能做到将d表作为驱动表、而a,b,c关联之后的结果作为prob外表呢,
通过Ordered好像是没有办法控制这样,加了就只能是a作为驱动表装载内存,b作为prob表与之关联,
之后的结果再作为驱动表,以此类推。
用Leading可以吗?请给出语法,谢谢。
解答:
oracle 10g中
hash_join可以通过no_swap_join_inputs/sw ......
建立临时表结构
create global temporary table myemp as select * from emp;
修改表结构
alter table dept modify (Dname char(20));
alter table dept add (headcount number(3));
复制一个表
create table emp3 as select * from emp;
参照某个已存在的表建立一个表结构,不需要数据
create table emp4 as select * from emp where rownum<1;
修改已存在表存储参数
alter table emp2 storage(next 256K pctincrease 0);
删除表中的列:
alter table emp drop column comm;
重新定位和组织表
alter table emp move tablespace users;
将表标识为不可用
alter table emp set unused column xyz;
使用check作限制约束,check可以实现对数据的自动检查
create table worker
( empno number(4) primary key,
name varchar2(10),
age number(2) check (age between 18 and 65),
sex char(2) check (sex ='男' or sex = ‘女’)
); ......