Answers for "sql server like with variable"

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