• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 實例演示在SQL中啟用全文檢索

    發表于:2007-05-25來源:作者:點擊數: 標簽:sql全文檢索何在演示實例
    如何在 SQL 中啟用全文檢索功能?本文將通過實例向你剖折這個問題。這是一個全文索引的一個例子,首先在查詢分析器中使用: use pubs go --打開 數據庫 全文索引的支持 execute sp_fulltext_database 'enable' go --建立全文目錄ft_titles execute sp_fullte
     如何在SQL中啟用全文檢索功能?本文將通過實例向你剖折這個問題。這是一個全文索引的一個例子,首先在查詢分析器中使用:

       use pubs
      go

      --打開數據庫全文索引的支持

      execute sp_fulltext_database 'enable'
     go

      --建立全文目錄ft_titles

       execute sp_fulltext_catalog 'ft_titles', 'create'
      go

      --為titles表建立全文索引數據元,UPKCL_titleidind是主鍵所建立的唯一索引,可由sp_help titles得知

       execute sp_fulltext_table 'titles','create', 'ft_titles', 'UPKCL_titleidind'
      go

      --設置全文索引列名

       exec sp_fulltext_column 'titles', 'title', 'add'
      go
      exec sp_fulltext_column 'titles', 'notes', 'add'
      go

      --建立全文索引

       exec sp_fulltext_table 'titles', 'activate'
      go

      --填充全文索引目錄

       exec sp_fulltext_catalog 'ft_titles', 'start_full'
      go

      --使用contains和freetext

       select title, notes from titles
      where contains(title, '"computer Cooking"')
      go
      select title, notes from titles
      where freetext(title, 'computer Cooking')
      go
      select title, notes from titles
      where freetext(title, '"computer Cooking"')
      go
      select title, notes from titles
      where contains(title, 'computer')
      go
      select title, notes from titles
      where freetext (*, 'computer')
      go

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>