最多的排在前面可以写select 关键字,count(关键字) from tb 
group by 关键字 
order by count(关键字) desc

解决方案 »

  1.   

    create table a ( b varchar2(2048) ) insert into a values( 'tt 1 tt 2 tt3' ) ;
    insert into a values( 'test tt 2 tt3' ) ;先建全文检索索引
    create index b_idx on a( b ) indextype ctxsys.ctxcat
    使用时使用catsearch来查询
    select * from a where catsearch( b , 'tt' ,null) > 0 可以得到有tt的记录
      

  2.   

    oracle实现全文索引
    使用develop工具可以,但是很慢的說