Drop columns and how to add them in the same position

Hello

My requirement is I want to delete columns in existing table and later, when I want to add these columns to the same position.

(1) create table t_emp

create table t_emp)
EmpNo varchar2 (10) primary key,.
Ename varchar2 (100),
desig varchar2 (100),
VARCHAR2 (100) Dept.
number (10,2)) of salary;

(2) a fall the columns below.

ALTER table t_emp
drop (desig, dept);

(3) add these columns.

ALTER table t_emp
Add (desig varchar2 (100),)
VARCHAR2 (100)) Dept

(4) desc t_emp

Now the order of the columns is changed, I want to bring to the initial position of columns, that is

EmpNo, ename, desig, dept, salary

I'm trying through some work around this, such as the use of a table of permutation. Please share your knowledge and what would be the apt method.

Thank you.

845956 wrote:
Hello

My requirement is I want to delete columns in existing table and later, when I want to add these columns to the same position.

(1) create table t_emp

create table t_emp)
EmpNo varchar2 (10) primary key,.
Ename varchar2 (100),
desig varchar2 (100),
VARCHAR2 (100) Dept.
number (10,2)) of salary;

(2) a fall the columns below.

ALTER table t_emp
drop (desig, dept);

(3) add these columns.

ALTER table t_emp
Add (desig varchar2 (100),)
VARCHAR2 (100)) Dept

(4) desc t_emp

Now the order of the columns is changed, I want to bring to the initial position of columns, that is

EmpNo, ename, desig, dept, salary

I'm trying through some work around this, such as the use of a table of permutation. Please share your knowledge and what would be the apt method.

Thank you.

column order does NOT elements.
If you insist blindly, then create new table with columns ordered you want
then move the data to the new table & finally to rename the tables.

Tags: Database

Similar Questions

  • How to add data to the table using Manager POST for restful Apex application

    Hi all

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Hi jerry2134,

    jerry2134 wrote:

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Check out the following tutorials OBE, that explains the creation of GET and POST RESTful Web Services and how to use them in the APEX.

    Also what yo mean "looking forward on how to proceed? Do you want to or created for use/consume in your Oracle APEX application hosted RESTful web services?

    If Yes, in your Application, you must create a RESTful Web Service reference -> shared components. Then, create a form/report based on Web Service reference.

    Kind regards

    Kiran

  • How can I do to two clips have the same position and scale?

    I just first Elements 10 today, since I'm doing a video for work. I am a seasoned videographer (I am a fairly successful YouTuber), but not with Adobe products. At home, I use Cyberlink PowerDirector 13 (although that is seriously considering moving to Premiere Pro), but for the moment at work I use elements since it is the program that they have.

    One thing that elements can do that PowerDirector is automatically align the clips at the same time. What I need to do, it's got a picture (do not fill the entire screen) suddenly cut to a similar picture of the same size and position, of the effect that the only part of the image changes. In my program to another, all I had to do was put them at the same time, change the shape of the Pic 1 how I want it, move the 2 Pic and do align on the same size and position, then move 2 peak after another in the timeline panel. However, items not the snap to each other, so I have no idea how to put them in the same size and position, one after the other.

    How can I do this? If this can be done in two elements or Pro, I'm going to have to Pro since I use this feature a lot.

    Thanks in advance!

    -Michael

    Michael

    First Elements 10 on what operating system? What video/graphics card your computer use? If NVIDIA GeForce, so we talk 10/NVIDIA GeForce display and other problems related specifically to first Elements.

    But, so far away that...

    Each clip on the Timeline of 10 elements first has a range of properties that contains a sign of movement. The expanded Motion Panel includes settings for the clip Position and scale. among other things.

    Position of two values... (___) (_) first from right to left and from left to right... second for up down or down the most.

    Have you been to the Palette of the 2nd clip properties to set its Position and scale values must match the first element?

    Have you been there and done that?

    Please read and review, and so let me know if I've targeted to what asked you. If this isn't the case, please specify where I missed what you were looking for.

    We'll rethink the situation if necessary and provide screenshots if necessary.

    Thank you.

    RTA

  • How to take the new start of table in the same position as the previous and only randomize the newObjec

    So I'm trying to do 5 boxes/ships (3Blue and 2 Greens) appear in a random position (1-Gree, 2nd - blue, blue-3rd, 4th-green, green-5 or some other random way) I have the corner of the stage. Bring down. Make a new 5 boxes and position them on the same position the previous 5 and only get randomized (not with the 5 previous, it does at the moment). And that then they move down.  so far code I have is:

    import flash.events.Event;

    var shipCount:Number;

    var shipCount2:Number;

    var shipArray:Array = new Array();

    var shipArrayPosition:Array = new Array();

    var count: int = 0

    var positionsX:Array = ["50" "100", "150", "200", "250"]

    addEventListener (Event.ENTER_FRAME, everyFrame)

    function everyFrame(ev:Event):void {}

    counter ++

    If (counter % 70 == 0) {}

    doShips()

    }

    positionShips()

    trace (shipArray.length)

    }

    function doShips() {}

    shipCount = 3;

    shipCount2 = 2;

    var distance = 10;

    for (var i: int = 0; i < shipCount; i ++) {}

    var s = new ship;

    shipArray.push (s);

    s.x = s.width/2 + (s.width* i) + gap * I

    addChild (s)

    shipArrayPosition.push (s);

    }

    for (var j: int = 0; j < shipCount2; j ++) {}

    s = new Ship2.

    shipArray.push (s);

    }

    var array: Array = new Array();

    While (shipArray.length > 0) {}

    var: index: uint = Math.floor (Math.random () * shipArray.length);

    Array.push (shipArray [index]);

    shipArray.splice (index 1);

    }

    shipArray = array;

    shipsArray has been randomized

    for (var k: int = shipArray.length - 1; k > = 0; k-) {}

    shipArray [k] .x = positionsX [k]

    addChild (shipArray [k])

    }

    }

    function positionShips() {}

    for (var i: int = shipArray.length - 1; i > = 0; i--) {}

    shipArray [i] .moveDown (//what) code in the class of the ship and Ship2-> only: this.y += 3

    }

    }

    and how to stay in one position. Must not move in any position x when the 5 new are added

    It is even more effective, because it removes the ships that moved out of sight:

    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.Event;
    
    var numShips:int = 5;
    var shipCount:int = 3;
    var shipArray:Vector. = new Vector.();
    var counter:int = 0
    var positionsX:Array = [];
    
    init();
    
    function init():void
    {
              // populate positions
              for (var i:int = numShips - 1; i >= 0; i--)
                        positionsX.push(50 * i);
    
              addEventListener(Event.ENTER_FRAME, everyFrame);
    }
    
    function everyFrame(e:Event):void
    {
              counter++
              if (counter % 70 == 0)
                        doShips();
              positionShips();
              trace(shipArray.length);
    }
    
    function doShips():void
    {
              var gap = 10;
              var s:MovieClip;
              var shipsLine:Sprite = new Sprite();
              shipsLine.cacheAsBitmap = true;
              addChild(shipsLine);
              shipArray.push(shipsLine);
              shuffle(positionsX);
              for (var i:int = numShips - 1; i >= 0; i--)
              {
                        s = i < shipCount ? new Ship() : new Ship2();
                        s.x = positionsX[i] + gap;
                        shipsLine.addChild(s);
              }
              shipsLine.y = -shipsLine.height;
    }
    
    function shuffle(a:Array):void
    {
              for (var i:int = a.length - 1; i >= 0; i--)
              {
                        var r:int = Math.floor(Math.random() * (i + 1));
                        var t:Object = a[r];
                        a[r] = a[i];
                        a[i] = t;
              }
    }
    
    function positionShips():void
    {
              for each (var shipLine:Sprite in shipArray)
              {
                        shipLine.y += 3;
                        // remove line that moved out of stage
                        if (shipLine.y > stage.stageHeight + shipLine.height)
                        {
                                  removeChild(shipLine);
                                  shipArray.splice(shipArray.indexOf(shipLine), 1);
                        }
              }
    }
    
  • Is it possible to restore an iPhone on a previous backup?  My phone was stolen 2 weeks ago and took me off but the thief has changed a lot of my apps and things.  I just want to know whether and how to restore them from before flight

    Is it possible to restore an iPhone on a previous backup?  My phone was stolen 2 weeks ago and took me off but the thief has changed a lot of my apps and things.  I just want to know whether and how to restore them from before flight

    How the thief has changed a lot?

    You do not have a password, find my iPhone ON?

    Read here for the restoration of the backup: http://support.apple.com/en-us/HT201252

  • I've upgraded to a newer version of iTunes.  When I opened the new iTunes, all of these songs randomly appeared in my iTunes playlist!  I have NO idea where they came from.  Why they are on my computer, and how to remove them from my iTunes?

    I've upgraded to a newer version of iTunes.  When I opened the new iTunes, all of these songs randomly appeared in my iTunes playlist!  I have NO idea where they came from.  Why they are on my computer, and how to remove them from my iTunes?

    I think iTunes might be showing your iCloud music purchases. Go to the menu bar, and unselect display-> show iCloud music purchases.

  • Yosemite zero space. can I just remove the "Recently deleted" - photos and how to find them?

    Yosemite zero space. can I just remove the "Recently deleted" - photos and how to find them?

    That will help, go to Photos > file > show recently deleted > clear everything up right

    Also:

    http://pondini.org/OSX/diskspace.html

    This app will tell you better that uses storage so you can remove

    https://www.OmniGroup.com/more

    Make sure that you also empty the trash

  • I block junk emails every day, always bring, I mark the email phishing scam day after day, always find them in the same places day after day after day, is it possible to stop really and how?

    I block junk emails every day, always bring, I mark the email phishing scam day after day, always find them in the same places day after day after day, is it possible to stop really and how?

    original title: tired of it

    You have posted in a forum for MSE, antivirus, antimalware application.  You must investigate e-mail options... providers (hotmail, gmail, yahoo, etc) screen several e-mail for spam.  You don't have not yet described here your email client... so there is little that anyone can tell you that generic advice.

  • When I set uo Outlook Express, all of my emails that were on my cox mail server have been transferred to outlook express and then dissapered. Where have all my messages and how to get them back?

    When I set uo Outlook Express, all of my emails that were on my cox mail server have been transferred to outlook express and then dissapered. Where have all my messages and how to get them back?

    You did not indicate EO to leave a copy of messages on the server, so when he downloaded from the server, they have been removed from it.  Go to tools | Accounts | Mail | Properties | Advanced and check the box leave a copy on the server for the future.
     
    Steve
     

    When I set uo Outlook Express, all of my emails that were on my cox mail server have been transferred to outlook express and then dissapered. Where have all my messages and how to get them back?

  • Hotmail has emoticons, but I can't find them in Outlook, to which I was transferred automatically. Are they in Outlook, and how to get them?

    Hotmail has emoticons, but I can't find them in Outlook, to which I was transferred automatically.  Are they in Outlook, and how to get them?

    Hello njz,

    When you create a new email you should see a toolbar at the top of the text by e-mail window. This toolbar will include "BOLD", italic, underlining, and other formatting tools. At the end of the toolbar, you'll see a smiling face. Click to display the available emoticons.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk |  vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • Access notification bar and how to add my notification, an icon?

    Access notification bar and how to add my notification, an icon? I want to add custom when applying messages is on the bottom, would someone point me in the right direction?

    Checked all classes of QNX package, ill find anything nearby... I think it is Yes not available, I suppose that even on the events of keyboard on-screen II mentioned in my other post.

    The notification API is not yet available.

  • Where can I find out what makes each tool and how to use them?

    Can someone tell me where I can find what each tool is, what it does and how to use them? I just started a class and requires the use of Photoshop. I've never used any programs like this and I'm very overwhelmed. I have nothing that tell me what each item is. ID there a book you'd recommend I could follow to get my answers?

    Hello

    The photoshop online help manual is good too.

    Tool of Photoshop galleries

    or here

    http://www.photoshopforphotographers.com/CC_2013/Help_guide/tools_panels.html

  • We know why in my Extension Manager is not any product on the left menu? or how to add them?

    We know why in my Extension Manager is not any product on the left menu? or how to add them?Captura de pantalla 2016-02-04 a las 10.20.01 a.m..png

    Adobe Exchange

    Please click the link above for more information.

  • I have synced my LR my android mobile. Why the images in a different order from the catalogue on the PC and how can I get them in the same order?

    I have synced my LR my android mobile. Why the images in a different order from the catalogue on the PC and how can I get them in the same order?

    You can check the order of Lightroom Mobile synchronization.

    Click on the collection name and choose the last option to sort.

    It should be similar to this screenshot:

    Once you get to know Lightroom Mobile images sort order, you can set the same sort order on your desktop of Lightroom.

  • How to add photos to the calendar already started?

    Hello everyone.

    I started a draft order of business and I found just 3 photos, I want to add, but I can't find how :-(

    Could you help me please?

    Thanks in advance,

    Fanny

    Reveal the sidebar in Photos.  Just press the key combination command-option-S ⌥⌘S

    Select photos on the album or the moment and then drag them to your calendar project icon in the sidebar to add them to the calendar.

    Film the bottom of the calendar project drag them to the pages where you want to use them.

Maybe you are looking for

  • C55-b5200 satellite - cannot load BIOS

    I recently returned my laptop to my daughter who has obtained for his newspaper in I can't boot to the bios it loads directly to the required password that she can't remember c55_b5200 can I do in addition to the use for the door stop...

  • How can I become a beta-tester tvOS?

    How can I become a beta-tester tvOS? I have the necessary-C USB-> USB cable required for updates directly by computer. I am also a beta tester iOS. What measures are there to become a member of the program?

  • Allow traffic from port 80 to 1 single ip address

    I block port 80 for all PCs, but it looks like I'll have to open up to a single address for our hosted service proxy filtered correctly display the block page.  (They have improved their systems and I don't understand why it must be open, sort of def

  • Backup to stop working

    When my automatic backup ran tonight, I received a message that says "the system cannot find file specified" 0 x 80070002

  • Supports the 8830 World Edition GPS functions?

    Hi guys. I am facing some problem GPS. I need to test my app on Simulator for the BB 8830 World edition. But this Simulator supports the GPS (using JDE 4.5.0). I read the topic on smart phones with GPS from herecapabilities. The reason for writing th