i did not understand the question if the how do you set var in a query you write the answer your self
declare @FirstName varchar(50)
declare @LastName varchar(50)
SELECT top 1 @FirstName =first_name , @LastName =last_name FROM customer
select @FirstName
select @LastName