Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

6

积分

0

好友

1

主题
1#
发表于 2013-1-21 20:06:20 | 查看: 4693| 回复: 4
比方一个表tab1(id number,cpath varchar2(2000));表tab2(id number,cpath varchar2(2000)),现在需要查询表他爸字段cpath包含表tab2字段cpath的所有记录,也就是前后模糊查询,这种情况,应该怎么进行优化呢(字段ID没什么用,不能进行关联)
2#
发表于 2013-1-21 21:34:19
对于模糊查询的SQL开发不太了解,但是我觉得可以采用 contain + text index

回复 只看该作者 道具 举报

3#
发表于 2013-1-21 21:35:53
What is Oracle Text - continued
Oracle Text can index text






In the database: VARCHAR2, CLOB, BLOB
In the file system (file names held in the database)
On the web (URLs held in the database
In many languages

• Text can be

• Short strings (product names, descriptions)
• Full sized documents (web pages, emails)
• Plain text, HTML or proprietary formats (.doc, .pdf)

• Text indexes

• Are created using CREATE INDEX…
• Are searched using the CONTAINS clause in SQL
• Are stored in secondary objects (tables) within the database

回复 只看该作者 道具 举报

4#
发表于 2013-1-21 21:36:36

回复 只看该作者 道具 举报

5#
发表于 2013-1-25 19:06:13
如果是树形结构,应使用connect by 的查询方式

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-5-20 07:44 , Processed in 0.047897 second(s), 20 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569