Oracle tables, fields, column operations ____oracle

Source: Internet
Author: User
1, Add the field Alter table Student Add age number (5);  2, modify the field ALTER TABLE student Modify age number (10);  ALTER TABLE table2 Rename column result to RESULT2;  3. Delete field Alter table student Drop column age;   4, empty the table student data Truncate; The data is normally deleted and if the deletion is found to be incorrect, it can be rolled back by rollback.  If you use a truncated table, all data is not recoverable. So fast (see Oracle Architecture in more detail) 5, DROP table drop table student;    6, rename table Rename student to Student1;   Add a column: Alter TABLE A Add (Cfyjsnr varchar2 (20));    Modify column: ALTER TABLE A rename column Cfyjsnr to Cfjysnr;   Modify the column type: ALTER TABLE A modify CFYJ varchar (200); Delete database one column ALTER TABLE a drop column Cfyjsnr

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.