Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change structure of a table

Status
Not open for further replies.

goilaswati

Programmer
Mar 3, 2003
20
IN
is there any way one can change the structure of a table after it is created. say for ex. change the name of a field or delete a field or change the type of a field.
please tell the syntax.




 
alter table table1 drop column col1 --to drop column called col1. Works in 9i not sure in 8i!

--to modify field

alter table table1
modify (col1 varchar2); to change to varchar2. Note Make sure values are null in coluumn before you update it. ie --> update table1 set col1 = null

sy Sy UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top