SQL FUNCTION LIKE SEARCH ISSUE
问题 please help to fix my sql function! in my sql function i have one temporary tables parameter passing to function @searchstring ---- "'%carrots%' AND tmp.ItemDescription like '%baby%'" Declare @tempvalues table (itemdescription nvarchar(max)) @tempvalues VALUES ----------------------- CARROTS, BABY, CLASS I, FRESH CARROTS, BABY, FROZEN CARROTS, CLASS I, FRESH ------------------ so in function iam passing value for searching data using like query and if matches i need to insert data in another