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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

editing columns?

Status
Not open for further replies.

fowlerlfc

MIS
Mar 20, 2002
136
US
I have a table that has an unneeded column in it. How would I remove it?

I also have a field that is set at 7 characters long, but I need to change it to 8 characters long.

Any help would be greatly appreciated!

 
Answered my first question:

alter table tablename drop column columnname;
 
for you second question:

ALTER TABLE tableName
MODIFY fieldName NewDataTypeOrConstraint;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top