I have the following query:
SELECT product_description.name, product.quantity,product.price,product_option_value_description.name,product_option_value.quanti
Just write product_option_value_description.name AS Name
to create the alias "Name"
for this column.
You can use any alias name using the 'AS' keyword. eg. select student_id AS id from student_info
Use as
For example:
SELECT product_description.name as 'ProdName', product.quantity,product.price,product_option_value_description.name as 'ProdDesc',product_option_value.quantity FROM product
Use an alias like so:
product_option_value_description.name AS `Option`
If you want to change the column's name, not only for this query but in general use ALTER TABLE
ALTER TABLE product_option_value_description CHANGE name newname DATATYPE;