Changing Column Order

When you add a new column to a table (after initial creation), how do you change the order of the columns to move the new column higher in the table?
Thanks

Mike,
I'm assuming your talking about the DB layer, not having anything to do with ApEx. In that case, you can not change the "default" order of the columns. This will only prove to be an issue for perfectionists such as you and me ;) Your queries can always be rewritten to display the columns in the correct order.
That being said, although I don't recommend this, there are ways to achieve what you want to do - BUT IT CAN BE DANGEROUS.
Example:
I have a table with columns a, b, c, and d. Later I need to add a new column and feel that it best belongs between c and d. I could create a column with the same datatype as d and populate it with an update statement. Then I update d to NULL, change the data type and name of the column to fit my new need, and populate it when ready.
I don't recommend doing this because at the end of the day it's silly and you would have to take down access to the table while you work. Also, my example was super simple, real world examples will be more complex and require "temporary" columns to be created to hold data while moving others.
Good luck.
Regards,
Dan

Similar Messages

  • Changed column order not applied to interactive report

    Hi,
    I've changed column order for interactive report.
    But it is not applied.
    How can I solve this issue?
    Thanks,
    Guy

    Hi Guy
    It depends on where you have changed the column order. If you change the column order using the 'Select Columns' function when you click on the 'Wheel of Magic', then it should work.
    If you are changing the column order from the Interactive Reports Attributes page then this will only affect the column order for non displayed items and the single row view.
    I hope that helps
    Shunt

  • Change column order updateable sql query report APEX 4

    Hi all,
    I have a master detail page. Detail is SQL Query (updateable report)
    I want to change the column order but seems not possiible anymore in A4.
    In A3... on the right side of the report attributes it was possible to move columns up or down.
    path is Home>>Application Builder>>Application nnn >>Page xx >>Report Attributes
    It seems that A4 the move up or down functionality is hidden or the region is to small with no horizontal scrollbar.
    Is there a work_aorund?
    This is also the case when the pages are displayed in icon view when showing all pages using.
    Home >> Application Builder >>Application
    Most right icons are hidden after the about and task regions.
    The work-around here is to display the pages in report or detail view
    Maybe a fix needed for APEX4?
    have nice weekend!
    Hugo Perfors
    Enthousiastic APEX developer

    Hi,
    It could be your browser settings. Try zooiming out in the browser View - Zoom - Zoom Out.
    Regards

  • Oracle sql developer change column order

    Hello,
    I created a table in Oracle sql developer.. After I created it I noticed that the order of the columns is wrong. So I right clicked the table->Edit.. But the arrow to move a column up/down (ie. change the column order is greyed out). Is there a another way to change this ?

    Alex Nuijten wrote:
    hello.
    I just looked at Guido profile and noticed he was from Germany. You being from India, also learning some Dutch along the way... soon the whole world will be speaking Dutch... :)And then - not a second earlier - the Oranje team will win a FIFA World Cup. ;-)

  • Can't change column order from document content type

    Hi,
    I noticed a strange error in our SharePoint 2010 environment:
    We are using a SharePoint 2010 Enterprise Edition which was migrated from a MOSS 2007 Enterprise Edition with one central document library.
    In this library are several content types plus the given document content type which was already there.
    When I try to edit the column order in the document content type settings the following error occurs:
    Server Error in '/' Application.
    Object reference not set to an instance of an object.
    Description:
    An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and
    where it originated in the code.
    Exception Details:
    System.NullReferenceException: Object reference not set to an instance of an object.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location
    of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [NullReferenceException: Object reference not set to an instance of an object.]
    Microsoft.SharePoint.ApplicationPages.ChangeFieldOrderPage.OnLoad(EventArgs e) +376
    System.Web.UI.Control.LoadRecursive() +65
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427
    This error only occurs with the document content type. Furthermore I am not able to reproduce this error on other libraries except when
    I am using a template from this library.
    I tried to delete this content type but every time an error occurs which is saying that the content type is still in use. I checked the entire library and all informations from the SharePoint Manager 2010 Tool but the content type is definitely no longer in
    use.
    I appreciate every little bit of help regarding this problem.
    PS:
     There is also another error concerning every content type in this library: I can’t create a new or use the standard Microsoft document information panel template because every time I try to there also occurs an error which
    states out a NullReferenceException regarding the metadata of this library. But that is another story which is next on my to-do list. First I would like to solve the first error concerning the column order.
    Thanks and regards,
    Thomas K.

    Hi TKellner,
    Thanks for your post.
    1.      
    Please try to use the code below to check whether the Content Type is in used.
    http://www.learningsharepoint.com/forum/sharepoint-2007-programming/check-where-the-content-type-is-used-in-sharepoint-site/
    2.      
    Can you open the Document Library in SharePoint Designer 2010? Also, can you open the template file correctly?
    Share the result.

  • How to change column order in power pivot model

    Hi All,
    I have an existing Power Pivot Data Model. In the data model when I add a new column it always go to the end. Is there any way to re-order columns in an existing data model (data model accessed via manage button on ribbon)
    Thanks
    Sonny

    Hello Sonny,
    In common the order of the columns shouldn't matter. But if you want to reange the order, you can simply drag&drop a column to an other Position. Click on the column header and keep the mouse key pressed, then move it to the position you want.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Change columns order

    Hi
    I have switched on iTunes on an authorised computer, I have plugged in my iPhone, I have selected iPhone\Music...
    I have tried to rearrange the order of columns because I wanted to organise the pane by "Artist"...
    I have got no reaction: the pane remains fixed on "Name"
    Can you help?

    hi master
    sir i use 6i report i see full report but i culd not found
    report region and report attributes
    sir please give me step or idea or tree where report region and report attrinutes"
    thanking you
    aamir

  • Column order is changed in criteria tab ,result tab column order unchanged

    I created a report in sample database with these columns in 11.1.1.6
    1- C50 Region 2 D1 Office, 3 P1 Product 4 1-Revenue and 5 C1 Customer Name
    Hit Results and I can see the result in this order.
    If I change column order in result tab to say 1,5,2,3,4, result tab table view is updated. Now if I go back to criteria tab, column order remains the same ( 1,2,3,4,5)
    This may be expected functionality in 11.1.1.6 but was not the case in 10g. This may be due to changes allowed in html layer.
    Now if I go back to criteria tab and reorder columns (say 1,3,2,4,5) and then click result, result tab columns are not ordered as set here. Result tab continues to show 1,2,3,4,5
    I saved the report with order 1,3,2,4,5 and log back in, order remains 1,2,3,45/ I believe if I restart presentation services, it will be come OK. The only way is to create a new report that I know now other than restarting presentation service.
    Question
    Have you observed this?
    If yes, what is the solution, how can result tab refresh with the order of the columns in criteria tab?
    Bhupendra

    Hi,
    In OBI 11g,the column order in the criteria tab and the results tab are not coupled to each other.
    When you create the report for the first time, both are in sync. If you need to reorder the columns, goto result tab and click on edit report, in the columns and measures section of the report, reorder the columns the way you desire.
    Save the report and the report should have the columns in the order you have set.
    P.S : this is not a bug !
    Thanks,
    Vineeth

  • APACHE OOo, how to change xls columns' order?

    Hi all. I have OOo 3.4.0 and I need to change order of columns in xls file, so, like, if I have columns A, B and C, I need to make them B, A, C. I tried to select the whole column and move it sideways while holding Alt. In one document that worked. But now I work with another one and it for some strange reason doesn't work... Permissions are OK if you ask. And I can edit the file. But cannot change columns' order... Why? And what's the proper way of doing it?

    nwa->configuration management->infrastructure  --->application modules
    filter the name column with "tcwddispwda"
    select the entry(should be only one after filter)
    select the "web dynpro properties" tab
    select the "default" in the table
    AllowUserPersonalization----->false

  • I cannot change song order on playlist with highlight and drag. I have turned off shuffle and highlighted the far left column( up/down arrow) of playlist. My mac pro is running 10.5.8  and am using itunes 10.4.

    I cannot change song order on playlists (old or new) with highlight and drag. I have turned off shuffle and highlighted the far left column (up/down arrow) of playlist. My mac pro is running 10.5.8  and am using itunes 10.4. I can't drag and drop "music" to "playlist" but can right click and get the option to "add to playlist." No such option for moving song within playlist, only the up and down arrow which moves song from top to bottom list, so if it is #4 from top it will move to #4 from bottom. Stupid I know. I spent over an hour with Apple support, reinstalled itunes, restarted and rebooted computer. Networked with my laptop which is running 10.6.8 and itunes 10.4 and it can drag and drop. The final Apple support solution was to reinstall my operating system. I would prefer not to. Any other ideas?

    After looking at other people's posts, I think it's official: there is a bug. Itunes support said I should not have lost the drag/drop tool and I haven't on the laptop that is running itunes 10.4 and operating system 10.6.8. I chatted with someboby who lost both his drag/drop and side scroll and what we have in common is a wacom tablet for a mouse. My laptop is a wireless mouse. I reinstalled whatever updated driver that wacom has out there, shut the system down for night, hoping for magic, but alas none to be had. So if I want to change song order, I network the laptop and desktop, share the screen on the laptop, drag and drop to my heart's content and curse Apple for making me work this hard to find the tool that was once at my fingertips. Apple also let me know that if I want to share songs in household that the hundreds on songs that were purchased for .99 need to be repurchased for another .30. Maybe Apple is holding my drag/drop tool captive til I pay up the money or Maybe the next update will fix the problem, I for one give up for now.

  • Change the order of columns in a report

    hi all.
    i can't change the order of columns in a report not just by altering the select statement. where can i change it?
    thanks.

    hi master
    sir i use 6i report i see full report but i culd not found
    report region and report attributes
    sir please give me step or idea or tree where report region and report attrinutes"
    thanking you
    aamir

  • Changing the column order in Table UI

    Hi I researched a lot and since my ALV didnt work Im back to Table ui . I implemented sorting and Export to Excel functionalities in table ui element just like in ALV. But now The client also wants to have the ability to change the order of columns of the table (like in ALV under settings link).
    Could someone just direct me to a proper tutorial or something where i can see the tutorial and make it please.
    Thanks.

    Ok.Just one thing. When we right click on the table on screen then it opens up a user settings where the user can adjust user-specific settings.
    Im just planning to do this. Ill give them this settings with a button on the top of the table. So basically even if i know that the user settings of the table can be opened by right clicking that .But it'll be great if I can put that action of opening up the user settings popup in a button onaction event and placing that button on top of the table.

  • The finder window for an external USB hard disk suddenly started separating files by time (today, yesterday, etc.) and stopped allowing me to change column width, order, etc. Also the header bar shifted to flat white from gray.

    The finder window for an external USB hard disk suddenly started separating files by time (today, yesterday, etc.) and stopped allowing me to change column width, order, etc. Also the header bar shifted to flat white from gray.
    All was normal until the icon for the disk stopped showing up on the desktop when I would plug it in. I rebooted the computer, and the disk icon now shows up but this new look to the finder window started as a result. The hard disk does not have this problem when I use it on another Mac running Snow leopard. Also, two other external hard disks that I use on this computer running lion 7.4 still have the normal header bars with columns that can be reordered, etc.
    I have tried looking in preferences and other places but have not seen this discussed. 

    Well duh - I finally figured out that somehow in the View options for the hard drive, the "arrange by" option had been changed to "by date" from "none". Not sure how that happened, I had never used the "view options" menu tem before. Changing "arrange by" back to "none" gets the gray column headers and the collapsible folder icons back. 

  • How do I change the order of columns in the responses table?

    How do i change the order of columns in the responses table in FormsCentral?  The default setting puts them in reverse order!

    Hi,
    The issue with the default ordering of columns in the response table is something that we hope to address in the next update to FormsCentral. In the meantime, you can reorder the columns by selecting them then click/drag using the gray area above the column name. As shown below, an orange marker will show you where the columns will be placed when you release the mouse button.
    Sorry for the inconvenience.
    Regards,
    Brian

  • How to change the order of columns in a speadsheet?

    It seems this would be completely straight-forward. However I can find nothing in help to tell me how to do this. I am using a spreadsheet for data so want to be able to rearrange in the order of the columns. How does one do this?
    Thanks.
    John

    I don't want to move or sort the data. What I want
    to do is change the order of the columns. I have
    columns A through P. I want to move columns M, N,
    O, and P to come after A and B so I can see the
    information in these 6 columns in one glance.
    How does one do that?
    One doesn't, but there are altenatives.
    1.
    Select columns C..L by clicking and dragging across the column headers.
    Go Format (menu) > Column width.
    Set the width to 0 (zero) and click OK.
    This hides columns C..L, showing A, B, M, N, O, P...
    You can still enter data into cells in columns C..L by clicking on a cell in column B, then pressing tab to move through the hidden columns.
    To restore the display, select columns B..M then reset the column width to a visible value (the current width of column B will be the default).
    2.
    Copy the values in columns A, B, M, N, O, and P into a set of contiguous columns. Set a New View to show these columns in a separate window.
    Example:
    Go Window > New View
    Drag the new window that opens up and left to cover the initial window.
    In AA1, enter =A1
    Select AA1..AB1 then Fill right (command-R)
    In AC1, enter =M1
    Select AC1..AF1 then Fill right
    Select AA1..AFn where n is the last row in which you have data then Fill down (command-D)
    This copies the contents of the cells you want to view together into a set of cells that are together. You can view them by going to the Window menu and switching between the two views of the same spreadsheet. Or you can skip the step of creating a second View, and scroll from one location in the sheet to the other.
    The usual caveat applies: Anytime you're making extensive changes to a document, work with a COPY and keep the original as a backup you can revert to should a misstep along the way result in data loss.
    Regards,
    Barry

Maybe you are looking for