Hi,
This is a simple example of what I am trying to do. Is there a way to use the variable in a wildcard of my select statement?
This is a simple example of what I am trying to do. Is there a way to use the variable in a wildcard of my select statement?
Code:
declare @folder varchar(200)
set @folder = (select min(folder) from #folders)
select * from #tempimages where path like '%@folder%'