I am using MySQL 5.1.54 and would like to define a user variable. Have tried the following with no results.
use business
select name,c_num
from clients
where rep='@rep';
set @rep=rep
@rep=3 or @rep:=3
Does any one have any idea what I am doing incorrect?
Thank you,
wayne
schmtzway@yahoo.com