Replacing text in SQL Server: REPLACE, STUFF and TRANSLATE

SQL Server 101
SQL Server 101
12 هزار بار بازدید - 3 سال پیش - In this video, we will
In this video, we will be looking at how to replace parts of strings in SQL Server.
My SQL Server Udemy courses are:
70-461, 70-761 Querying Microsoft SQL Server with T-SQL: https://rebrand.ly/querying-microsoft...
98-364: Database Fundamentals (Microsoft SQL Server): https://rebrand.ly/database-fundamentals
70-462 SQL Server Database Administration (DBA): https://rebrand.ly/sql-server-dba
Microsoft SQL Server Reporting Services (SSRS): https://rebrand.ly/sql-server-ssrs
SQL Server Integration Services (SSIS): https://rebrand.ly/sql-server-ssis
SQL Server Analysis Services (SSAS): https://rebrand.ly/sql-server-ssas-mdx
Microsoft Power Pivot (Excel) and SSAS (Tabular DAX model): https://rebrand.ly/microsoft-powerpiv...
----
My Excel for PC courses are:
Beginner to Excel - https://rebrand.ly/microsoft-excel-sp...
Intermediate to Expert Advanced - https://rebrand.ly/microsoft-excel-ex...
Power Table, Get and Transform and Power Pivot - https://rebrand.ly/visualizing-data-e...
VBA macros for Excel - https://rebrand.ly/excel-vba-pc
----
There are a few ways that you can replace text in SQL Server.
REPLACE allows you to find a string in a bigger string, and replace it with something else.
However, if you don't know what you are replacing, but where it is, then you can use STUFF. It allows you to replace LEFT and RIGHT functions with a single STUFF function.
If you want to replace multiple strings, or maybe switch strings around, then you might want to have a look at the TRANSLATE function.
3 سال پیش در تاریخ 1400/06/03 منتشر شده است.
12,018 بـار بازدید شده
... بیشتر