filmov
tv
Searching for text in SQL Server: CHARINDEX and PATINDEX
![preview_player](https://i.ytimg.com/vi/QLGi5E8k24s/maxresdefault.jpg)
Показать описание
In this video, we will be looking at how to search for text within bigger text searches.
My SQL Server Udemy courses are:
----
In this video, I'll show you how to use the SQL Server functions CHARINDEX and PATINDEX to search for text in a table.
These functions are useful if you need to find a specific piece of text in a table. They both have the same syntax, so you can use either one depending on what you need. I'll also show you some examples of how to use these functions to search for text in a table. Thanks for watching!
CHARINDEX - this is the SQL Server equivalent of INSTR or FIND. SQL Server is 1-based, so the first character is character number 1, not 0. You can either start searching from the beginning, or from partway through the string.
PATINDEX - sometimes, looking for string literals is not sufficient. You may need to use wildcards such as % and _ as well. This is when you use PATINDEX. However, you must start searching from the beginning with PATINDEX.
My SQL Server Udemy courses are:
----
In this video, I'll show you how to use the SQL Server functions CHARINDEX and PATINDEX to search for text in a table.
These functions are useful if you need to find a specific piece of text in a table. They both have the same syntax, so you can use either one depending on what you need. I'll also show you some examples of how to use these functions to search for text in a table. Thanks for watching!
CHARINDEX - this is the SQL Server equivalent of INSTR or FIND. SQL Server is 1-based, so the first character is character number 1, not 0. You can either start searching from the beginning, or from partway through the string.
PATINDEX - sometimes, looking for string literals is not sufficient. You may need to use wildcards such as % and _ as well. This is when you use PATINDEX. However, you must start searching from the beginning with PATINDEX.
Searching for text in SQL Server: CHARINDEX and PATINDEX
How to Search SQL Query Text in Stored Procedures and Ad-Hoc Queries
SQL Tutorial - How to search text in a Stored Procedure
Full Text Indexing Basics with Azure SQL | Data Exposed: MVP Edition
What is Full Text Search in SQL Server Where do you need to use this feature
SQL Server Tutorial - Enhancements to full text search
SA: Introduction to Full-Text Searching in SQL Server 2012
SQL indexing best practices | How to make your database FASTER!
SQL database in Fabric Ep. 3: Using AI and SQL's vector functionality with SQL database in Fabr...
Search query on sql example
Searching Text in SQL Server (#217)
Discover LlamaIndex: Joint Text to SQL and Semantic Search
Secret To Optimizing SQL Queries - Understand The SQL Execution Order
5 Basic SELECT Statement Queries in SQL
Should I Learn Fulltext Indexing? (Dear SQL DBA Episode 29)
SQL query to get the string before or after any specific character (Substring, Charindex)
Oracle Optimization Tutorial, PL/SQL Course: Using Oracle Text for text Searches (Lesson 7)
How do SQL Indexes Work
EASY Install Full Text Index Search on Microsoft SQL Server 2019
Install SQL Server Advanced Services For Fulltext-Search
SQL search for SQL Server objects
Search text in stored procedure in SQL Server
Learn Basic SQL in 15 Minutes | Business Intelligence For Beginners | SQL Tutorial For Beginners 1/3
Extract ZIP Codes | String Contains Substring | Data Analyst SQL Interview Questions
Комментарии