Home Backend Development PHP Tutorial Introduction to SQL Server Full Text Search_PHP Tutorial

Introduction to SQL Server Full Text Search_PHP Tutorial

Jul 13, 2016 pm 05:01 PM
server sql Full Text Search Function and it New yes of Introduction index able

Full-text index and full-text search are new features of SQL Server 7.0. It can index character type columns in the data (such as varchar, text and other type columns), and realize full-text search queries through the index. Compared with sql server regular index and full-text retrieval, the difference between the two is as follows:
Regular index full-text index
Use create index or constraint definition to create and delete using full-text index stored procedure
Delete or execute drop index Statement deletion
When inserting, modifying or deleting data, sql server can only fill the full-text index through task scheduling or execution storage
Can automatically update the content of the regular index to fill the full-text index
Each table can create multiple regular Indexes There can only be one full-text index per table
Indexes cannot be grouped Multiple full-text indexes in the same database can
be organized into a full-text directory
Regular indexes are stored in database files Full-text indexes are stored in files
In order to support full-text index operations in the system, sql server 7.0 has added some new stored procedures and transact-sql statements. The
specific steps for using these stored procedures to create a full-text index are (the steps in parentheses are called for each step stored procedure name):
(1) Start the full-text processing function of the database (sp_fulltext_datebase);
(2) Create a full-text catalog (sp_fulltext_catalog);
(3) Register the full-text index in the full-text catalog Table (sp_fulltext_table);
(4) Point out the column name in the table that requires full-text retrieval (sp_fulltext_column)
(5) Create a full-text index for the table (sp_fulltext_table);
(6) Fill the full-text index (sp_fulltext_catalog) .
Example:
use pubs
go
exec sp_fulltext_database 'enable'
--Create a full-text index data element for the titles table, where create is to create, activate is to activate, and deactivate is to close the full text of the table The activation status of the index means that
it will no longer participate in the filling of the full-text catalog, and drop means deletion; in the create parameter, the name of the full-text catalog and the index column name are followed.
--The following statement creates a full-text index data element for the titles table in the pubs database. The full-text directory that stores the data element is FT_pubs, and the only index used is
UPKCL_titleidind (the title table is the PRIMARY KEY of the title_id column Only index created by constraints)
sp_fulltext_table titles,'create','FT_pubs','upkcl_titledind'
--activate it
sp_fulltext_table titles,'activate'
--specify to participate in full-text indexing Column
sp_fulltext_column 'titles','title','add'
sp_fulltext_column 'titles','notes','add'

http://www.bkjia.com/PHPjc/631196.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631196.htmlTechArticleFull-text indexing and full-text retrieval are new features of sql server 7.0, which can perform character type columns in the data ( Such as varchar, text and other types of columns) are indexed, and full-text search is implemented through the index...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1268
29
C# Tutorial
1248
24
What is the difference between HQL and SQL in Hibernate framework? What is the difference between HQL and SQL in Hibernate framework? Apr 17, 2024 pm 02:57 PM

HQL and SQL are compared in the Hibernate framework: HQL (1. Object-oriented syntax, 2. Database-independent queries, 3. Type safety), while SQL directly operates the database (1. Database-independent standards, 2. Complex executable queries and data manipulation).

The difference between vivox100s and x100: performance comparison and function analysis The difference between vivox100s and x100: performance comparison and function analysis Mar 23, 2024 pm 10:27 PM

Both vivox100s and x100 mobile phones are representative models in vivo's mobile phone product line. They respectively represent vivo's high-end technology level in different time periods. Therefore, the two mobile phones have certain differences in design, performance and functions. This article will conduct a detailed comparison between these two mobile phones in terms of performance comparison and function analysis to help consumers better choose the mobile phone that suits them. First, let’s look at the performance comparison between vivox100s and x100. vivox100s is equipped with the latest

What exactly is self-media? What are its main features and functions? What exactly is self-media? What are its main features and functions? Mar 21, 2024 pm 08:21 PM

With the rapid development of the Internet, the concept of self-media has become deeply rooted in people's hearts. So, what exactly is self-media? What are its main features and functions? Next, we will explore these issues one by one. 1. What exactly is self-media? We-media, as the name suggests, means you are the media. It refers to an information carrier through which individuals or teams can independently create, edit, publish and disseminate content through the Internet platform. Different from traditional media, such as newspapers, television, radio, etc., self-media is more interactive and personalized, allowing everyone to become a producer and disseminator of information. 2. What are the main features and functions of self-media? 1. Low threshold: The rise of self-media has lowered the threshold for entering the media industry. Cumbersome equipment and professional teams are no longer needed.

What are the functions of Xiaohongshu account management software? How to operate a Xiaohongshu account? What are the functions of Xiaohongshu account management software? How to operate a Xiaohongshu account? Mar 21, 2024 pm 04:16 PM

As Xiaohongshu becomes popular among young people, more and more people are beginning to use this platform to share various aspects of their experiences and life insights. How to effectively manage multiple Xiaohongshu accounts has become a key issue. In this article, we will discuss some of the features of Xiaohongshu account management software and explore how to better manage your Xiaohongshu account. As social media grows, many people find themselves needing to manage multiple social accounts. This is also a challenge for Xiaohongshu users. Some Xiaohongshu account management software can help users manage multiple accounts more easily, including automatic content publishing, scheduled publishing, data analysis and other functions. Through these tools, users can manage their accounts more efficiently and increase their account exposure and attention. In addition, Xiaohongshu account management software has

What is PHP used for? Explore the role and functions of PHP What is PHP used for? Explore the role and functions of PHP Mar 24, 2024 am 11:39 AM

PHP is a server-side scripting language widely used in web development. Its main function is to generate dynamic web content. When combined with HTML, it can create rich and colorful web pages. PHP is powerful. It can perform various database operations, file operations, form processing and other tasks, providing powerful interactivity and functionality for websites. In the following articles, we will further explore the role and functions of PHP, with detailed code examples. First, let’s take a look at a common use of PHP: dynamic web page generation: P

What is GateToken(GT) currency? Introduction to GT coin functions and token economics What is GateToken(GT) currency? Introduction to GT coin functions and token economics Jul 15, 2024 pm 04:36 PM

What is GateToken(GT) currency? GT (GateToken) is the native asset on the GateChain chain and the official platform currency of Gate.io. The value of GT coins is closely related to the development of Gate.io and GateChain ecology. What is GateChain? GateChain was born in 2018 and is a new generation of high-performance public chain launched by Gate.io. GateChain focuses on protecting the security of users' on-chain assets and providing convenient decentralized transaction services. GateChain's goal is to build an enterprise-level secure and efficient decentralized digital asset storage, distribution and transaction ecosystem. Gatechain has original

Understanding VSCode: What is this tool used for? Understanding VSCode: What is this tool used for? Mar 25, 2024 pm 03:06 PM

"Understanding VSCode: What is this tool used for?" 》As a programmer, whether you are a beginner or an experienced developer, you cannot do without the use of code editing tools. Among many editing tools, Visual Studio Code (VSCode for short) is very popular among developers as an open source, lightweight, and powerful code editor. So, what exactly is VSCode used for? This article will delve into the functions and uses of VSCode and provide specific code examples to help readers

What are the uses of mobile and Jiaqin apps? What are the uses of mobile and Jiaqin apps? Mar 27, 2024 pm 09:01 PM

Mobile Hejiaqin APP is a comprehensive software that integrates family management, intelligent control, and family communication. It aims to create a comfortable, intelligent and harmonious home environment for users through intelligent and convenient operations. Through this application, users can easily control and manage various smart devices at home and enjoy the convenience brought by smart life. So what are the specific functions of the Mobile and Jiaqin App? Users who want to know more about it can follow this article to learn more about it! Tutorial on how to use the Mobile and Jiaqin app: What are the uses of the Mobile and Jiaqin app? Even if you don’t know IT, you can easily manage the network. 2. No matter how many smart products you have, one app is enough. 3. Even if you are thousands of miles away from home, you can still "go home" to watch it. See 4. Rich functions, enjoy smart life

See all articles