Sunday, June 30, 2013

Substring/Replace in sql server

Substring

SELECT
    (SELECT substring(DomainName,1,(charindex(',',DomainName)-1)))
FROM Settings.Settings

Replace

(SELECT REPLACE(p.FirstPart,'<p>','<p style="text-align:center;"')) AS 'FirstPart',

No comments:

Post a Comment

📱Build WhatsApp Bot using .NET + OpenAI

   In this article, you will learn how to build a real-world WhatsApp chatbot using ASP.NET Core and OpenAI. This bot can automatically repl...