zoukankan      html  css  js  c++  java
  • sql server 创建全文索引

    if (select DATABASEPROPERTY(DB_NAME(), N'IsFullTextEnabled')) <> 1
    exec sp_fulltext_database N'enable'

    GO

    if not exists (select * from dbo.sysfulltextcatalogs where name = N'Q_product')
    exec sp_fulltext_catalog N'Q_product', N'create'

    GO

    if (select DATABASEPROPERTY(DB_NAME(), N'IsFullTextEnabled')) <> 1
    exec sp_fulltext_database N'enable'

    GO

    if not exists (select * from dbo.sysfulltextcatalogs where name = N'Q_product')
    exec sp_fulltext_catalog N'Q_product', N'create'

    GO
    --C_Product为表名称,PK_C_Product为索引名称(要唯一)
    exec sp_fulltext_table N'[dbo].[C_Product]', N'create', N'Q_product', N'PK_C_Product'
    GO
    --TypeMark所要创建全文索引的列
    exec sp_fulltext_column N'[dbo].[C_Product]', N'TypeMark', N'add', 2052 
    GO

    exec sp_fulltext_table N'[dbo].[C_Product]', N'activate' 
    GO

    exec sp_fulltext_catalog 'Q_product','start_full'
    GO

    exec sp_fulltext_table N'[dbo].[C_Product]',N'start_change_tracking'
    GO

    exec sp_fulltext_table N'[dbo].[C_Product]',N'Start_background_updateindex'
    GO

    exec sp_fulltext_table N'[dbo].[C_Product]',N'update_index'
    GO

  • 相关阅读:
    nginx
    spring 学习
    mysql 免安装 操作
    院感干预 报错
    iis 无法绑定 net.tcp
    wangEditor 自定义 菜单
    院感干预 发布
    第17篇 shell编程基础(2)
    第16篇 Shell脚本基础(一)
    第15篇 PSR-04 规范
  • 原文地址:https://www.cnblogs.com/zengwei/p/1273991.html
Copyright © 2011-2022 走看看