How can we change the name of a column of a table?

Answer Posted / shweth

we can use ALIAS function for this
select tree AS plant
from table;
or simply we can skip writing AS but shoudnt write a comma
between the old and new column names.

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check if value already exists in mysql database in php?

439


How to decrement dates by 1 in mysql?

510


What does the file with the extension: frm, myd, and myi contain?

470


What is mysql protocol?

456


In which language mysql has been written?

865






How do I enable mysqli extension?

493


What are slow queries?

474


How do I create a stored procedure in mysql?

487


What is database in php mysql?

491


How do I create a new database in mysql?

476


How do I copy a table in mysql?

482


What is a data directory?

509


What are the advantages and disadvantages of using mysql?

500


What is the query to display top 20 rows?

603


How many concurrent queries can mysql handle?

473