ora-01440: To reduce the precision or scale, the column to be modified must be empty

Source: Internet
Author: User
-Due to changes in business requirements, the PRODUCTPRCIE structure of the Oracle Database ProductInfo table needs to be modified. To modify the table structure, you must be able to modify the table structure in the case of empty tables.          Specific steps:--1, view productinfo table structure--2, ProductInfo table ProductID Backup CREATE TABLE Productinfo_bak      As SELECT * from ProductInfo;      --3, delete the data in the ProductInfo table delete from ProductInfo;      --4, modify table structure ALTER TABLE ProductInfo modify Productprcie number (10,2); --5, restore table structure INSERT INTO ProductInfo select * from Productinfo_bak;

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.