How to change the data type of a column after the creation of the table

It comes to my table desc

SQL > desc job1

Name                                      Null?    Type

----------------------------------------- -------- ----------------------------

JOB_CODE NOT NULL VARCHAR2 (3)

JOB_CLASS VARCHAR2 (30)

CHG_HOUR NUMBER (5.2)

OVERTIMECHARGE NOT NULL NUMBER

I want to change column CHG_HOUR to store numbers up to 12 digits in length (including the decimal points).

I tried the following and it did not help

SQL > alter table job1 change column chg_hour number (6.6);

ALTER table job1 change column chg_hour number (6.6)

*

ERROR on line 1:

ORA-01735: invalid option of ALTER TABLE

SQL > alter table job1 change chg_hour number (6.6);

ALTER table job1 change chg_hour number (6.6)

*

ERROR on line 1:

ORA-01438: value larger than the precision specified for the column

where I'm going wrong?

Hello

I want to change the CHG_HOUR column to store numbers up to 12 digits in length (including the decimal points).

I tried the following and it did not help

ALTER table job1 change chg_hour number (12.6);

Tags: Database

Similar Questions

  • How to change the table of contents page text color

    Hello


    Can someone suggest me please how do I change the color of the text in Captivate6 table.


    Please see below image, color of the highlighted text should be changed.


    Future prospects for assistance.


    Thank you

    Srikanth

    Untitled-4 copy.jpg

    The background color of the text is controlled by the selection of "Title" in the color.

    title text font, size and color are controlled by accessing the "Info" button and selecting "Title" in the theme area and by changing your selections there.

    Hope this helps - sorry for the delay - took in a drama date limit!

  • How to change the table of contents

    Awhile back, I created a table in my document and it works very well. Now I need to add a section and I completely forgot how do. If anyone can help?

    Your table of contents is pulling one or more Styles (probably the stars) paragraph of the document. Add the new article he style identical to existing sections (same paragraph Styles), then update the table of contents (right click anywhere in it and choose to update Table of contents). Unless you have a few other wrinkles, that should come at the end.

  • How to change the table of facts in the backend application

    Hello


    I have a test where f1 is the fact coming in the backend query table, how can I change/modify so that if I select the same test he should come in fact different table f2.

    Please suggest.

    Since you have a degree you're your report column implied is ignored.

    Your measurement is mapped to 2 facts and obiee is to select one of the sources is. (not sure what criteria).

    If you want your report to get data F1 pull your implicit done column (internal line number) in the report and hide it.

    I hope this helps.

    Published by: Ménard Hussain on November 16, 2012 06:08

  • How to change the table definition after upgrade from 9 to 10?

    after update from 9 to 10, DOF tables still as 9i:

    ................. PCTFREE, PCTUSED, INITRANS 40 10 1 MAXTRANS 255...
    ... inndex PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS...


    Is there a method to convert all tables to new style 10g without re-creating thousands of tables and emp/imp one then?


    Thank you

    You can use the package dbms_redefiinition to Redefine tables.
    You can find more information in this regard on the following links

    Syntax
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_redefi.htm#CBBFDJBC

    All tasks
    http://www.Oracle.com/pls/db102/search?word=DBMS_REDEFINITION&PartNo=

  • How to change the text design AS3 using the class Date

    Hi I tried to create a 24-hour countdown on 24 who will make a loop and play back counting it self down to 00:00:00:00

    Thanks to Andrei1 for providing me with this code to create the next animtion:

    var result: String = "";
    var date: Date = new Date (null, null, null, 0, 0, 0, 24);

    var timeDisplay:TextField = new TextField();
    timeDisplay.autoSize = TextFieldAutoSize.LEFT;
    timeDisplay.multiline = timeDisplay.wordWrap = false;
    timeDisplay.border = true;
    timeDisplay.x = timeDisplay.y = 20;
    timeDisplay.text = "00:00:00 ';

    addChild (timeDisplay);

    var: timer = new Timer (250);
    timer.addEventListener (TimerEvent.TIMER, count);
    Timer.Start ();

    function countDown(e:TimerEvent):void {}
    Date = new Date (date.setTime (date.getTime () - timer.delay));
    result = date.toTimeString () replace (/ \s+GMT\-\d + /, "");
    timeDisplay.text = result;
    }

    The end result, I'm looking for is to display this countdown clock in a clear gray arial font as shown in the picture below link:

    http://img801.imageshack.us/img801/3604/picture1ms.PNG

    Right now the code I received leaves me with a box around the type and a GMT (+ 000):

    http://img534.imageshack.us/img534/4264/picture2ot.PNG

    I was wandering if any body knows how to change the design of something in the photo above simular.

    Thank you for your help in advance.

    Tom

    Snippets of code is one thing, but nothing is gained back together solutions to people without explanation (but maybe a smile to not have to struggle with it).  Learning is not easy and it is better that it isn't... it involves the effort, stadiums, an increase in capacity to win.  You presented an entirely different approach to a solution that involves techniques beyond a beginning level.

    Don't you think that tom understands what he has in his hands?  It can develop its own regular expressions or manipulate a Date object to what you gave to him?  More importantly, since he never solved the intitial design of yesterdays issues poster, which has involved basic concepts much more, don't you think he could solve this design now?  Or he missed on some basic things that must precede the techniques that you have provided learning?

  • change the data type of a column

    Since the previous post: how to change the data type of column number to varchar2 in oracle10g

    Measures may be:
    create table TestTable (ColA varchar2 (5));
    Insert into TestTable values('12345');

    ALTER table TestTable Add (ColATemp number (5));
    setting a day of TestTable set ColATemp = ColA;

    ALTER table TestTable remove column ColA;
    change the column in table TestTable rename ColATemp CLC;

    My question is:
    If the table half million records

    setting a day of TestTable set ColATemp = ColA;

    will it be a good solution? Any performance issues? There is no index on this column.

    Sort while you do DDL, you will not be able to do any operation on the table. You the best suites you. It's a time operation, you can change the table to change the data type, but it may not work if some of the data in the table confirms no new data type of column.

    Concerning

  • How to change the default (Windows 7) painting 'Save as type' JPG (from PNG) format when recording using the * only * the keyboard?

    This is the 2nd time this same question, the 1st time that I was given an irrelevant answer which was not helpful at all. Please take the time to read and understand what I need to before you answer.

    I just need to learn how to change the default PNG to JPG, so every time I save a screenshot using (only) the keyboard, it will already be showing JPG as the "Save as type". I am sure that it requires an edit registry so just point me in the right direction and guide me on how to do it, that's all I need.

    To help you understand my dilemma, I take a lot of screenshots and Ctrl + V paste in Paint almost daily. Since my physical disability in my arms causing me pain and discomfort when I use the mouse, I avoid using the mouse I use the shortcuts as much as possible to help reduce the constant pain, I'm still in my right arm when using the mouse. I hope I have explained well enough details.

    If it's in the wrong place, please move to a better place.

    Thank you

    Lee

    I don't know of any registry value, but you can use the key sequence to "Save as jpg.

    ALT

    F

    V

    J

    The F key may be pressed simultaneously with the ALT key or after him.

    You can reduce the number of keys to just ALT plus a digital key by using the following, adapted from one method described HERE.   Setup is much easier with a mouse, but can be done using the keyboard only.  I showed you the controls and mouse shortcuts keyboard to add an icon "" Save as JPG"to the Quick Access toolbar.

    Open Paint

    Mouse Keyboard equivalent
    Click on the file Menu (upper-left) Press ALT + F to open the file Menu
    Hover mouse on ' Save as ' to open the list of file types Press V to view the list of file types
    Right click on JPG to open the context menu Use the TAB or down arrow key to select JPG and then press SHIFT + F10 to open the context menu
    Click "add to quick access toolbar. Press A to "add to the Quick Access toolbar.

    At this point, your installation is complete.

    With open Paint, press the ALT key .  This will display the keys associated with various actions.  In my case, "" Save as JPG"icon that has been added to the Quick Access toolbar was the fifth icon (after save, undo, redo and print).  So, to "Save as JPG," I would press ALT+5 (even once, you can press 5 either with or after you press the ALT key).

  • How to change the type of user account in the registry editor

    Hello.

    Can someone tell me how to change the type of user account in the registry editor

    Thanks in advance... :-)

    Kind regards
    Rambeau

    Hello.

    Can someone tell me how to change the type of user account in the registry editor

    Thanks in advance... :-)

    Kind regards
    Rambeau

    You can not. You need to do this via the control panel / accounts of users or via the command prompt. In both cases, you need to be logged in as an administrator account.

  • Camcorder car bought in Asia, how to change the date/time United States?

    Hi, I bought the unit in Hong Kong and brought it to the United States.  After I've set the date and time, each time it starts, it is synhronize to the time and date in Asia, which is 15 hours ahead of time.  I tried to find it in the manual on how to change the region, but could not.  Is there a way I can do?  Pleaes help.  Very much appreciated.

    I found it under Satilliate synchronization, I had to press OK again to UTC is displayed.  Thank you very much for the help.

  • [JS] How to change the type of stroke?

    app.selection[0].strokeWeight = 3;     // app.selection[0] = [object TextFrame]
    app.selection[0].strokeCornerAdjustment = StrokeCornerAdjustment.DASHES;
    

    Hello.

    I tried this code, but error.

    error message: property is not applicable to the current state.

    How to change the type of dotted line?

    You must use the strokeType method, try this

    App.Selection [0] .strokeWeight = 3;

    App.Selection [0]. StrokeType = "dashes (3 and 2).

  • Does anyone know how to change the date of the capture of several images with LR CC?

    Does anyone know how to change the date of the capture of several images in LR CC

    Hi Jguy,

    Please see this thread time changing capture several Images on

    Let us know if this helps

    Kind regards

    Assani

  • How do I reselect the type to change.  I have a text template that I want to, but when I try to select it with the text tool always creates a new text layer.  How to change the type of the layer in my registered design?

    How do I reselect the type to change.  I have a text template that I want to, but when I try to select it with the text tool always creates a new text layer.  How to change the type of the layer in my registered design?

    OK, Bob. This give a try.

    First, open a new file and make sure the background is white, not on Transparent that I suspect you have currently defined.

    Then, type your copy. Your layers panel will then look like the top of this picture...:

    and when you drag the text on the image layer, it will look like the lower part of the sample above.

    You can then position the text layer with the tool move

  • How to change the type of light?

    Does anyone know how to change the type of light?

    What happens is that I have a button I want to create a Point of light, but just create a spot light.

    Does anyone know how to change it to create a point of light?

    My code is:

    Add a Point of Comp light active

    addLightCtrl.onClick = function(){}

    pointLight var = proj.layers.addLight ("Light," [960, 540]);

    }

    See the attribute of the lightType LightLayer object. Page 100 of the script AE CS6 guide.

    pointLight = activeItem.layers.addLight ("Light," [960, 540]);

    pointLight.lightType = LightType.POINT;

  • How to declare the data type of a column in a select query?

    How can we give the data type of each column on the fly during the selection of rows in a query?

    the cast function converts one data type to another.

    The syntax of the cast function is:

    Cast ({expr |}) (subquery) | (MULTISET (subquery)} AS type_name)

    Select cast (22 August 2003 ' AS varchar2 (30))
    Double;

    Published by: b_ * August 12, 2011 10:08

Maybe you are looking for