Is there any way we can change the column name in a table

Editorial / Best Answer

Answered by: Praveena

  • Dec 14th, 2005


Yes we can alter Column name in a table using the following query:

alter table <tablename> rename column <old Column Name> to <New Column Name>

Regards,

Praveena

 

 

Showing Answers 1 - 55 of 55 Answers

sabby

  • Nov 23rd, 2005
 

not directly you have to do it like this

create table emp1name,emp_no) as select ename, empno from emp

  Was this answer useful?  Yes

rama

  • Nov 28th, 2005
 

yes.from ora9i

 alter table <tablename>  rename <old col name> to  <new col name>

sunitha

  • Dec 2nd, 2005
 

yes definetly,

select ename e_name,empno emp_no from emp;

manju

  • Dec 12th, 2005
 

alias names for columns is possible

but changing the column name is not possible

Manohar

  • Dec 13th, 2005
 

No.Aliases is

  Was this answer useful?  Yes

Praveena

  • Dec 14th, 2005
 

Yes we can alter Column name in a table using the following query:

alter table <tablename> rename column <old Column Name> to <New Column Name>

Regards,

Praveena

 

 

Shweta Vishwakarma

  • Jan 9th, 2006
 

No,we cannot change the column name permanently.

Yes there is one query which changes column name temporarily ie.

alter table <tablename> rename column <old Column Name> to <New Column Name>

This query changes column name temporarily but there is no changes in the original database as such.

Pawan Ahuja

  • Mar 7th, 2006
 

We can change the column name of the table

that is available in oracle 9i.

alter table tablename rename column column1 to column2;

rahul

  • Mar 23rd, 2006
 

Hi Praveena,

Your query helped in changing the col name of table

Rahul

  Was this answer useful?  Yes

nileshsingh

  • May 18th, 2006
 

yes,certainly we can change the name of the column in a table.

the query should be:

alter table <table name> rename column <old_column_name> to <new_column_name>

But i have tried this on Oracle 10g,it is not working on Oracle 9i.I dont know why???? pls suggest.

  Was this answer useful?  Yes

sasi

  • May 25th, 2006
 

Alter table <table name> rename column <old column name> to <new column name>

It will work exactly in Oracle 9i.

Oracle Developer

  • Jul 11th, 2006
 

Yes. I tried.

alter tablename rename column oldcolumnname to new columnname

is working in Oracle9i.

jojan

  • Nov 14th, 2006
 

updated one

alter table <tablename>  rename <old col name> to  <new col name>

  Was this answer useful?  Yes

Trueman Mhango

  • Jun 14th, 2007
 

I have tried to change the colunm name with, alter table <tablename> rename colunm <oldcolunm> to <newcolunm>

  Was this answer useful?  Yes

krishna748

  • Dec 19th, 2008
 

by using the following command we can rename the column name...

it can be used form  oracle 9i Release2 only...

alter table <tablename> rename <old coluname> to <new col name>


   yes, it's possible to change the column name by using the following query in SQL server


       SP_RENAME ' <TABLE_NAME.OLD_COLUMN_NAME> ' , ' NEW_COLUMN_NAME '



   Thanks & Regards
    K.Santhosh

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions