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!

how to redefine the column size but not to reacreate the table?

Status
Not open for further replies.

mokesql

Programmer
Sep 6, 2001
30
AT
hi!
i would like to redefine the size of a column but dont want to recreate the table because there are allready data in it. the column is now defined as a varchar2(100) and i want to change it to varchar2(500). thnx for the help
 

Try this:

ALTER TABLE table1
MODIFY (column1 VARCHAR2(500));

I don't think you will have a problem with increasing the size even if data already exist, the only problem is when you decided to decrease the size and there are data in it.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top