Answers for "like with variable in sql server"

SQL
1

sql like variable

ALTER PROCEDURE <Name>
(
    @PartialName VARCHAR(50) = NULL
)

SELECT Name 
    FROM <table>
    WHERE Name LIKE '%' + LTRIM(RTRIM(@PartialName)) + '%'
Posted by: Guest on August-30-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language