Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6672113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:28:12+00:00 2026-05-26T03:28:12+00:00

Lets say i have a table with the following definition create table dummy (col1

  • 0

Lets say i have a table with the following definition

create table dummy (col1 number(9) not null)

All the values in this dummy.col1 are 7 digit long. Now i want to reduce the length of this column from 9 – 7 using alter command. Oracle gives me error that column to be modified must be empty to decrease precision or scale. Makes sense.

I want to ask is there any work around to reduce the column size?

  • I can’t delete the values in the column.
  • I can’t copy values from this column to another since it has trillions of data.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:28:12+00:00Added an answer on May 26, 2026 at 3:28 am

    The column size has no relationship to how the data is physically stored (they are variable length)

    e.g. ’23’ in a number(2) will take exactly the same space if stored in a number(38)

    It is purely a constraint on the maximum number that can be stored in the column therefore you could just add a constraint on the column:

    ALTER TABLE dummy ADD 
    CONSTRAINT c1
    CHECK (col1 < 9999999)
    ENABLE
    VALIDATE;
    

    if you want it to go a little quicker change VALIDATE to NOVALIDATE obviously this will not check the validity of the existing data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say I have the following MySQL structure: CREATE TABLE `domains` ( `id` INT(10)
Lets say I have this SQL statements: ALTER TABLE dbo.[tbl] ALTER COLUMN col1 varchar(300)
Lets say I have a table with the following rows/values: +--------+----------+ | ID |
I have the following table: CREATE TABLE posting ( id integer NOT NULL PRIMARY
Lets say I have a table with the following columns: Qty, INTEGER SaleDate, DATETIME
Lets say I have the following: <table><tr><td> <table> <!-- I want a reference to
If i have this table on dataBase.js file: client.query( 'CREATE TEMPORARY TABLE IF NOT
Lets say I have the following table User_ID Manager_ID --------------------- Linda Jacob Mark Linda
Lets say I have a table with some data like the following: ID text
I have the following mysql table called test. lets say it has the data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.