Ora-01440: column to be modified must be empty to decrease pr

Source: Internet
Author: User

Ora-01440: column to be modified must be empty to decrease precision or scale solve problem reason: the customer asked a field to support decimal point, the database at the beginning of the design only supports integer, in the alert statement to modify the type, a ora-001440 error occurs, solution step1: Back up the original table, create table WF_TEACHER_REMUNERATION_BAK as select * from WF_TEACHER_REMUNERATION; step2: delete the data in the original TABLE: delete from WF_TEACHER_REMUNERATION; Step 3: Modify the precision of alter table "DHOFFICE ". "WF_TEACHER_REMUNERATION" MODIFY ("CLASS_TIME" NUMBER (10, 2); step 4: recover data insert into WF_TEACHER_REMUNERATION select * from WF_TEACHER_REMUNERATION_BAK; step by step. After the operation is completed, close the job!

Related Article

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.