Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql like variable

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

SELECT Name 
    FROM <table>
    WHERE Name LIKE '%' + LTRIM(RTRIM(@PartialName)) + '%'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #variable
ADD COMMENT
Topic
Name
1+2 =