Cannot get the query to run, throwing error on the @searchin
variable.
Probably very simple but cannot see it.
set @search = "chip";
set @searchin = "CompanyName";
select * from con_search where @searchin like concat ('%',@search,'%')
Cannot get the query to run, throwing error on the @searchin
variable.
Probably very simple but cannot see it.
set @search = "chip";
set @searchin = "CompanyName";
select * from con_search where @searchin like concat ('%',@search,'%')
This will work, however you should sanatize the data going into it