Add a New Column Before An Existing Column in 10g.

Hi all,
I Want to add column in a table ,before an existing column in Oracle 10G database.
table A:
id number,
name varchar,
job varchar,
status char.
i want to add a column before "JOB".
I.E) USING AFTER OR BEFORE IN ALTER TABLE SYNTAX.

887268 wrote:
Hi all,
I Want to add column in a table ,before an existing column in Oracle 10G database.
table A:
id number,
name varchar,
job varchar,
status char.
i want to add a column before "JOB".
I.E) USING AFTER OR BEFORE IN ALTER TABLE SYNTAX.There's no such option, and to be honest there's no real need to do it as Oracle doesn't care what order the columns are in, and you can select out the columns in your queries in whatever order you want. You could use the DBMS_REDEFINITION package (http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_redefi.htm) but unless you're really struggling then that's perhaps a little bit over the top. The simplest way if you really feel you need to do it is to create a new table based on the existing one with your new column in it and selecting the data into it at the same time...
create newtable as
select id, name, cast(null as varchar2(10)) as newcolumn, job, status from tableA;and then drop the original table and rename the new one...
drop table tableA;
rename newtable to tableA;of course you would need to recreate any constraints, indexes, triggers etc., and it could be problematic if you have foreign keys etc. but you have to weigh up what you are wanting to do and why you really need to put a new column in the middle of other columns rather than just putting it on the end.

Similar Messages

  • Add a new table to an existing Print Layout Designer report

    Is it possible to add a new table to an existing Print Layout Designer report? For example, in the Production Order there is a Sales Order field (which is displayed on the report), I would like to display some information from UDFs found on the Sales Order, but when I add a Database Field to the report the Sales Order tables does not appear in the list (OWOR).

    Hi
    It is possible provided there is a relationship which exists between two tables.
    You can add a Database field. Goto the Properties and selct Content Tab.
    Now in the Table dropdown, hold the Alt Key and click. This displays all the tables in B1. After selecting the Table, you can select the related Column.
    Remember there should be a relationship which exists between this column and existing columns.
    Because PLD works completely on Joins to my understanding

  • How to add a new field to an existing Generic Search result list?

    Good day,
    I'm new to the concepts of the Generic Search Framework.  I'm attempting to add a new field to an existing result list, and have that new field restricted to a value of "C".  This new field will not be displayed, it is only used to ensure that Invoice Documents with a DocStatus of "C" are returned to the B2B Application.
    From the *modification\generic-searchbackend-config.xml file, the existing
    <h4><property-group name="billing_resultlist_B2B_R3">
      <property name="BILLINGDOC" columnTitle="sbt.sbs.genericsearch.billing.invoice.title" parameterType="rowkey" hyperlink="b2b/documentstatusdetailprepare.do" linkParamClass="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIDynamicContent" linkParamMethod="buildAttributesForBillingDocumentDetails" linkTargetFrameName="form_input" />
      <property name="BILL_DATE" type="date" columnTitle="status.sales.date" writeUnderProperty="BILLINGDOC" defaultSortSequence="DESCENDING" />
      <property name="NET_VALUE" type="number" columnTitle="status.billing.detail.netvalue" fieldOutputHandlerClass="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIDynamicContent" fieldOutputHandlerMethod="buildBillingNetValue" cssClassName="amount" />
      <property name="CURRENCY" type="hidden" />
      <property name="PAYER" columnTitle="gs.hd.gl.partner" linkParamClass="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIDynamicContent" linkParamMethod="buildShowPartnerLinkSales" />
      <property name="PAYERS_GUID" type="hidden" />
      <property name="SD_DOC_CAT" type="hidden" />
      <property name="OBJECTS_ORIGIN" type="hidden" />
    </property-group>
    </h4>
    I'm trying to better understand how the R/3 tables and columns are specified in the Generic Search Framework.  I know that the R/3 table and field is: VBRK.RFBSK, but in the configuration XML files, I never see this exact information specified.   How it is specified to be a part of the result set?
    After reading the section in the Development and Extension Guide, I also learned about the "allowedValue" definition, and I believe that I will use that to specify the "C" value for the Invoice Document Status field.
    I would greatly appreciate any help.
    Thanks,
    _kevin

    Hi Kevin,
    this means you are working in this section of the generic-searchbackend-config.xml
                 <property-group name="SearchCriteria_B2B_Billing"
                                 useSearchRequestMemory="true">
    Below this property
                    <property name="IRT_BDH_BILL_TYPE"                    
                              type="box"
                              entityType="BEART_BILL_TYPE"
                              tokenType="EXP"
                              requestParameterName="rc_documenttypes"
                              label="gs.att.lbl.doc.type"
                              UIJScriptOnChange="GSloadNewPageR3(this);">
                        <allowedValue value="ORDER"           description="b2b.status.shuffler.key1val2"/>                   
                        <allowedValue value="QUOTATION"       description="b2b.status.shuffler.key1val1" />
                        <allowedValue value="INQUIRY"         description="b2b.status.shuffler.key1val11" />
                        <allowedValue value="ORDERTMP"         description="b2b.status.shuffler.key1val3" />
                        <allowedValue value="CONTRACT"        description="b2b.status.shuffler.key1val4" />
                        <allowedValue value="INVOICE"         description="b2b.status.shuffler.key1val5"  default="true"/>
                        <allowedValue value="CREDITMEMO"      description="b2b.status.shuffler.key1val6" /> 
                        <allowedValue value="DOWNPAYMENT"     description="b2b.status.shuffler.key1val7" />
                        <allowedValue value="AUCTION"         description="b2b.status.shuffler.key1val9" />
                    </property>
    please try adding this new property
                    <property name="DOCUMENT_STATUS(1)"
                              entityType="CL_CRM_REPORT_SET_STATUS"
                              tokenType="RAN"
                              type="hidden"
                              requestParameterName="rc_status_head1" value="C" />
    This should do the trick. Unfortunately, I don't have a E-Commerce scenario with an ERP backend for testing purposes available to you have to test it yourself. Keep me updated with the test results !      
    Philipp Koock
    SAP CRM Web Channel Consultant
    http://www.koock.net

  • Add a new field to an existing Condition table

    How can I add a new field to an existing condition table?
    I have table 971 and I want to add INCOTERMS (INCO1) to this existing table but do not see how to add it.
    Thanks

    Hi Vicky,
        I dont think you can add new fields to the condition table once you have activated the condition table.
    SAP says you can only make limited changes to the condition table, like changing the description, fast entry screen, header and footer fields, but not able to add new fields to the table, and I think that is the correct approch or else for the same table you will have two sets of condition records.
    Please refer to the below link:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/de/7a8534c960a134e10000009b38f83b/frameset.htm
    What you can do is create a new condition table with additional field and assign this table before the currently used table in the access sequence.
    Hope this helps.
    Regards
    Raj

  • How to add a new data element for existing table filed(Primary key field)

    Hi Experts,
    How to add a new data element for existing table field(Primary key field)
    For this filed ther is no foreign key relation ships and even check table.
    while activating table it is giving message like below.
    can you help any one to solve this and wil steps to add new dataelement for existing primary key filed of a table.
    Check table (NAMING SPACE/TABLE NAME(EX:/TC/VENDOR)) (username/19.02.10/03:29)           
    Primary key change not permitted for value table /TC/VENDOR
    Check on table  /TC/VENDOR resulted in errors              
    Thanks
    Ravi

    Hi,
    Easiest way is to download the table eg into an Excel table (if possible) or text table. Drop the table from the database. Build your table with the new key field. Build the database table again and fill it.
    You can do it also over the database into a new table. Drop the old one. Build the enhanced one and fill it. Afterwards drop your (temporary) table.
    Maybe there are other ways, but this works.
    Success,
    Rob

  • Can we add a new attachment to an existing SC from any other custom page in SoCo PO View

    Hi Experts,
    Need your expert advice on the below requirement.
    We have created a custom view in SoCo PO page. There we have a New custom view called Notes&attachement.which contains same value from Notes & attachment of Shopping Cart.
    We are updating existing Notes of SC by FM 'bbp_pd_sc_update' and same is reflected in SC of same item guid & same header guid.
    Similarly trying to add a new Attachment to already existing attachment. New attachment is reflected in custom page and the describe link is working perfectly. but if come out of SoCo page , lets say in SC the new added attachment is shown but display_url,phio_size etc are not stored properly in DB.
    in bbp_pd transaction every thing looks same for new and existing attachment. we are using same FM 'BBP_PD_SC_UPDATE' by passing new internal table of attachment in import statement. Even 'BBP_PROC_DOC_UPADTE' has same result that is attachment is partially updated.
    Suppose, SC has one attachment at the time of creation. then adding a new attachment in custom view of SoCo PO page then every thing works fine in SoCo PO page but out of that SoCo PO or in SC the newly added attachment is not properly updated.
    I have added mime_type,phio_size,disp_url,file_name,file_ext,ev_content of new attachment in existing attachment internal table and calling above FM for update.
    Can we  add new attachment outside SC to existing SC ? if yes , then how?
    Thanks,
    Partha

    Hi Partha,
    Please post this query in the category: SAP SRM. Your post currently shows up on the forum - SRM User Interface Add-on. As your query is not related to the new ad-on, you might not get as many responses in this forum as you would have if you had posted the query in the general SRM forum (http://scn.sap.com/community/srm).
    Hope this helps
    Cheers,
    Yateesh

  • OBIEE 11.1.1..6.9 Logical Column Derived from existing columns

    Hello,
    I've just installed the last version 11.1.1.6.9 in my test environment and I already have a problem with the RPD.
    I've some logical column derived from existing columns using an expression. (so far, so good)
    With Adminsitration Tool (Last Version 11.1.1.6.9), when I launch the Consistency Check Manager I have the following error (I use the SampleAppLite RPD in order to reproduce the problem)
    ERRORS:
    SampleApp Lite :
    [nQSError: 46008] Internal error: File server\objectmodel\Src\SOSecureRpGateway.cpp, line 479.
    [nQSError: 23013] An error occurred when extracting the metadata definition for the Attribute '"SampleApp Lite"."D3 Orders (Facts Attributes)"."test"'.
    The logical column test on "D3 Orders (Facts Attributes)" :
    CASE WHEN "SampleApp Lite"."D3 Orders (Facts Attributes)"."Order Date" > "SampleApp Lite"."D0 Time"."Calendar Date" THEN 1 ELSE 0 END
    The problem appears only when I use multiple source table in column expression.
    Does anyone has the same problem ? I think it's easy to reproduce (I searched on OracleSupport but I didn't find anything yet)
    Benjamin

    I know that there is no relation between "SampleApp Lite"."D3 Orders (Facts Attributes)"."Order Date", "SampleApp Lite"."D0 Time"."Calendar Date", it's also the same thing in my own RPD.
    But as it's working with the 11.1.1.6.2 BP1 version I don't understand why it's not working with 11.1.1.6.9.
    Implicit fact column is not set on my repository, but I don't have any request with only dimensional column, so if my understanding is correct I don't need to use it. Also, the problem appears during the check of the repository not in answers.
    thanks anyway

  • Rendering a column before the nodeStamp column in an af:treeTable

    I have a requirement to show a column before the nodeStamp column in a treeTable.
    Is there a way to achieve this?
    Code looks like the following -
    <af:column id="t3c1" width="50px" headerText="#{dbdiscoveryuiBundle.SELECT}" align="center">
    <af:selectBooleanCheckbox .... />
    </af:column>
    <f:facet name="nodeStamp">
    <af:column id="t3c2" rowHeader="unstyled" headerText="#{dbdiscoveryuiBundle.TARGET_NAME}" width="80%" align="start">
      <af:outputText ...." />
    </af:column>
    </f:facet>
    Expected order -> Checkbox first followed by OutputText
    NOTE - Making rowHeader=true is not an option because of accessibility violations
    Thanks,
    Vishwesh

    Hi user,
    Do you need the header for the select one choice? you could so something like:
    <af:column id="c1">
                            <af:panelGroupLayout id="pgl1" layout="horizontal">
                                <af:selectOneChoice value="#{bindings.DepartmentsView1.inputValue}"
                                                    label="#{bindings.DepartmentsView1.label}"
                                                    required="#{bindings.DepartmentsView1.hints.mandatory}"
                                                    shortDesc="#{bindings.DepartmentsView1.hints.tooltip}" id="soc1">
                                    <f:selectItems value="#{bindings.DepartmentsView1.items}" id="si1"/>
                                    <f:validator binding="#{bindings.DepartmentsView1.validator}"/>
                                </af:selectOneChoice>
                                <af:outputText value="#{node}" id="ot1"/>
                            </af:panelGroupLayout>
                        </af:column>
    But that will be all in the same column so I guess you tried that already.

  • How to add a new pin to an existing subvi

    Hi,
    I've been using Labview for sometime now but I still haven't found a convenient way to add a new pin to an existing subvi other than opening up the subvi and adding a control or whatever and then highlighting the code and using create subvi. Then naming this new subvi with the name of the old one. There must be a better way than doing this ??
    Thanks.
    John

    Hi John,
    I think you want to have a new connector where you can wire to.
    Open the VI, create the control or indicator on the front panel and then make a right click on the icon. Choose show connector pane. Your mouse cursor changes to the wire cursor. Click in the pane on a free connector and then click on the new control/indicator. This way the control/indicator is assoicated with the connector on the connector pane. Keep the rule controls left indicators right side. If there is no more connector left you can choose a new pane.
    Normally we use only a limited set of panes for all subVIs to avoid benches in the wires. Most we use the pane with 4 connectors left and 4 connectors right.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • How to add the new dep area in existing cod

    Dear all,
    how to add the new dep area in existing cod we are planing to implement the IFRS by using leading ledger and non leading ledger present we are using OL leading ledger
    present we are using dep area 01 ,15
    how to achive the parallel accounting in asset accounting how to add new dep area 30 in existing COD
    if any document plz refer me  

    Hi Bhayyapu,
    Please refer to the links given below.
    New Depreciation area
    Adding a New Depreciation Area to Existing Assets - Financial Accounting (FI) - SAP Library
    Hope this will help you.
    Regards
    Eugene

  • Add 2 new fields to an existing ABAP query in a particular position

    Hello,
    I have added 2 new fields to an existing ABAP query. These have been successfully added and the query is also executing.
    But these 2 new fields are displaying at last. I need to add these fields in a particular column position.
    Also I need to change the heading of these 2 new fields.
    I tried to do so from the basic list, layout design from SQ01.
    But I could not.... whatever I do.. the 2 new fields are displayed at the end of the list...
    Please help me

    Hi Andreas,
    Do you mean that I should create a complete new abap query?
    Is there no way to add some new fields at a particular position to an existing abap query?

  • How to add a new filter in an existing web service method (BIWS - WEBI document)

    Hello Experts, we have 7 web service query's connected to a dashboard. Basically it is one WSDL URL and 7 Get Methods...Web service queries are BIWS (via WEBI document instance). There are filters setup for each of these web service methods.
    Recently there was a request to add 2 new fields to the webi document and also the 2 fields need to be included as filters in the 7 methods. I know there is an option to edit the method, but when i edit the method, i cannot find the 2 new fields in list to set as filters.Can anybody help me understand how to add filters to an existiing web service method? I do not want to delete the method and republish the block as web service.
    Any help will be great and points rewarded.
    Thank you
    Ann

    Hi Ann,
    The reason you are not able to see any of the new columns as a option to select in your web service block is because when you have published that block, they were not present. Add these two new objects in your block and publish it again. You will be prompted for duplication content. Select the highlighted block for duplicate and now you can see the new added objects in the filter option. Update and this will overwrite your published block. Please note, web services do appear to behave weirdly when used with dashboards so I request you to please try it in a separate test report first.
    Hope that helps.
    Regards,
    Tanisha

  • Add a new folder item in existing folder

    Hi
       All when i add a new folder item in an existing form
       and when i add some new controls with in this folder(tab) all controls are see the existing folder i want
      these control is see only this new folder
      plz help me
    Thanks & Regards
      Mohd Shahid

    Hi Sha
    I don't understand fully, but what i think you are saying is that you want to add a item, but to a specific tab.
    To do that, when you add your item, you must also do the following in addition to it's height,width,ect
    oitem.FromPane = 2
    oitem.ToPane = 2
    this say which pane/folder it will show on. If both are zero it will show on all tabs. If like above it will show on 1 tab.
    Hope this helps

  • How to add another new report painter in existing T-code?

    HI,
    Can someone guide me, how to add a report painter report ZAL into a existing T-code?
    My T-code contain 2 report, now i wish to add a new one. So when user execute this T-code, we can see these 3 report.
    Thanks

    Hi,
    add the new report to the report group (T-code GR52) where the 2 already existing reports belong to.
    In report painter you don't execute a report but always a report group including one or more reports.
    Best regards, Christian

  • When I add a new song to an existing playlist, will it automatically sync to my iPod once connected to my computer?

    When I add a song to an existing playlist on iTunes, will it sync to my iPod once connected?
    I'd rather not have to remember each specific playlist I add songs too to sync it to my iPod.
    I do have automatic sync set up, starting today because I got tired of constantly manually adding music.
    ALSO, if I deleted songs in iTunes, will it delete them in my iPod as well once connected to my computer?

    PsychedelicWonders wrote:
    When I add a new contact to my actual phone, will it sync, back up and make a file for the new contact in outlook?
    iPhoneUser guide, page 8:
    "Contacts and calendars are synced
    both ways between your computer and iPhone. New entries or changes you make
    on iPhone are synced to your computer, and vice versa."
    So basically, do they keep each other updated automatically?
    Yes, your data will be updated every time you sync.
    Or do I have to enable something?
    iPhone User guide, page 9:
    "The Info pane lets you configure the sync settings for your contacts, calendars, email
    accounts, and web browser"
    http://manuals.info.apple.com/enUS/iPhone_UserGuide.pdf

Maybe you are looking for

  • Report to see the output of VLPOD transaction

    Hi Gurus      I have configured Proof of delivery concept to caputre loss of Quantity due to moisture. can any body tell me about standard report to see the output of VLPOD transaction.Full points for the correct solution.

  • How can I get the server absolute path of virtual directory?

    Problem context: absolute path of my application at JRUN server is c:\testing nd url is http://kaspak/test ( kaspak is a machine local to server i-e client nd server r at same machine ) I m uploading a file nd saving it at server. PROBLEM: server sav

  • WARNING: NEW-PAGE PRINT can no longer be used to print dialog box

    i am getting a warning as 'NEW-PAGE PRINT can no longer be used to print dialog box'. Please suggest what method can i use otherwise

  • Content server upgrade from 6.40 to 6.50

    Hello, As content server version 6.40 is not supported by SAP now so we need to upgrade it to 6.50. Can anyone share the knowledge who performed it? I have gone through note 514500 and understood that patching is as simple as replacing some old files

  • How to control the canvas of the ADF Read-Only Form

    Hi Could you give an idea of how to control the canvas of the fields in ADF Read-Only form. My requirements are as follows 1) ALL the labels has to left justified irrelevant of their length 2) ALL the values also has to left justified and should be w