oracle Distinct|Unique 异同

oracle Distinct|Unique
这边我查了一些资料看了看,
Distinct|Unique
返回select 出来的重复数据的一笔(distinct/unique 可认为互为同义词)
重复行数数据必须和select 出来的每一个表达式匹配。
限制:
1:
当你指定Distinct或者Unique 时,总共能显示在Select 后面表达式的Bytes 限制是
oracle的DB_block_size 减去 一些"头部"字节.
(即Select list 中出来的Bytes 数不能大于 DB_block_Size)
2: Distinct 后面不能跟 Lob栏位。
Example
create table uni_dis(colu1 varchar2(4000),
colu2 varchar2(4000),
colu3 varchar2(4000),
colu4 varchar2(4000),
colu5 varchar2(4000))
当将Each column 加满时使用下面SQL 都会报 1486 error
select unique/ distinct
colu1,colu2,colu3,colu4,colu5,colu1||colu2 abcv
from uni_dis

大家要注意此项:
01489, 00000, "result of string concatenation is too long"
// *Cause: String concatenation result is more than the maximum size.
// *Action: Make sure that the result is less than the maximum size

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/34596/viewspace-817687/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/34596/viewspace-817687/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值