# Contains

**contains** is used to check membership. It is index-based and word-oriented.

It is used for clob data type, on larger pieces of text.

It is much more powerful (also includes ranking)

It is also faster than like in many cases because it uses index

However, we must build the index first (**create index** … )

Example:

```
SELECT * FROM Table WHERE CONTAINS(name, 'Vikram', 1)>0;
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vikram-bajaj.gitbook.io/cs-gy-6083-principles-of-database-systems/main-1/sql/advanced-sql/text-operations/contains.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
