I tried to learn about MySQL Variable and do command like this
SET @target=`name`;
SELECT @target FROM transaction_product LIMIT 10;
But it is error and said Unknown column 'name' in 'field list'
Why it is error, i’m sure there is column name on my field list
here is the screenshot of the table

you need to use different quotes ‘name’ for assigning string to a variable and
`name` for column names:to get column value you can use
INTOclause:to get multiple rows in single variables you can use
GROUP_CONCAT:to execute query dynamically: