Deleting a column...

...ok this is more of a MySQL question than JDBC/Java but lets hope someone can help. Didnt get any help from MySQL manual.
Question: What is the SQL syntax for deleting an existing column from a table? anyone?
thanks

ALTER TABLE tableName DROP COLUMN columnNameLike all DDL statements, this is database-specific. Watch out.

Similar Messages

  • Reg:How to delete the column in table control also from database table.

    Hi Experts,
    Once again thank u all for giving the responses.
    one more doubt is how to delete the columns of table control and also the record shold delete from ztable.
    With Regards,
    Saroja.P.

    Hi,
    If you want to delete the rows in the table control and simultaneously delete it from the database table, then you can implement a 'DELETE' functionality specific to your table control. Have a MARK field (you will find that in the screen attributes of the table control -> give a name for the MARK field, you will find an additional MARK column at the beginning of your table control). You can check whatever rows you want to delete from the table control, call the delete module.
    "This portion of code inside the LOOP...ENDLOOP.
    IF sy-ucomm eq 'F_DELETE'.
       gt_itab2-check = mark.  " Store the MARK field status into your internal table's correspoding field 'check'
      MODIFY gt_itab INDEX tabcontrol-current_line.
    ENDIF.
    iF sy-ucomm eq 'DELETE1'.
      DELETE gt_itab WHERE check eq 'X'. "Your internal table does not have rows that you want to delete
    ENDIF.
    Now you can modify your database table using the MODIFY statement.
    MODIFY ZDB FROM TABLE gt_itab.

  • How to delete a column from the table control in module pool?

    Hi,
      can any one please tell How to delete a column from the table control in module pool?
    thanks in advance
    warm regards
    HareeshKumar N

    hi hareesh,
    I think it is better to hide it.
    How to hide: You can check this link
    Dynamic Hide column in table control

  • How to Delete a Column in Internal Table

    Hi All,
    Does any one know ,How to Delete a Column in Internal Table?

    Hi,
       For deleting the column in the internal table, you have to eliminate the field which you want to delete.
    loop at itab into wa.
      move corresponding wa to wa1.
    append wa1 to itab1.
    clear wa1.
    clear wa.
    endloop.
    wa1 is the workarea without the field which you want to delete.
    itab1 is the internal table which consists of the deleted column.

  • HT5824 I've been using numbers for iPad and I accidentally deleted a column. And the auto-save feature saved that and now I can't undo it. Does iCloud storage have backups of saved files from like 10 minutes ago? I have number

    I've been using numbers for iPad and I accidentally deleted a column. And the auto-save feature saved that and now I can't undo it. Does iCloud storage have backups of saved files from like 10 minutes ago? I have numbers synced to iCloud.
    I tried to undo it but the app crashed.
    I am hoping there's like a previously saved version of my file in iCloud somewhere. 

    No, iOS does not do short term incremental back ups to iCloud such as you get with Time Capsule.It backs up when you do soo manually, or if set properly, when the device is plugged in and connected to WiFi. It will not have saved your changes as of 10 minutes prior.

  • Will deleting a column at logical schema delete the same at physical level by DDL Sync?

    Will deleting a column at logical schema delete the same at physical level by DDL Sync?

    Hi David,
    First of all thanks for your quick response and for your help logging the enhancement request,
    I am testing more or less your suggestion but I  am not sure if I understood exactly what you mean,
    1)I imported from data dictionary in a new model and into the options menu on the schema select screen I un-ckecked partitions and triggers,
    I guessed that the import should not get from the data dictionary the information about the partitions but the result is that the tables partitioned (by list in this case) are partitioned by range without fields into the physical model on SDDM,
    2)I select one of the tables modify a NO partitioned option and propagate the option for the rest of the tables
    3) I imported again from data dictionary but this time I included the partitions into the option menu on select schema screen,
    into tabular view on compare models screen I can select all the tables with different partitioned option, also I can change for "list partitions" and select only the partitions that I want to import.
    So I have a solution for my problem, thanks a lot for your suggestion
    The second step I'm not sure is needed or maybe I can avoid the step with some configuration setting in any of the preferences screen,
    if not, I think the options to not include partitions into select schema screen are not so clear, at least for me,
    please, could you confirm me if a way to avoid the second step exists or if I misunderstood this option?
    thanks in advance

  • Deleting a column in a text file using LabVIEW

    Hello all,
    I'm trying to delete the first column of my tab delimited text file using LabVIEW and then save it under the same file name.  Can someone show me a quick way to perform this operation.  Is this even possible with LabVIEW?  Any help would be much appreciated.
    My purpose is to automate this operation for hundreds of daily text files containing data that needs processing.  I'm currently using LabVIEW 8.2.
    Thanks!
    -noviceLabVIEWuser

    If the file is relatively small:
    Read the file using the Read from Spreadsheet File VI to get 2D array.
    Remove the column from the 2D array.
    Write out new 2D array to new file using Write to Spreadsheet File VI.
    If the file is relatively large then you will likely run into memory issues. In this case you will need to read the file in chunks. You can decide how many lines to read at a time. Use a for-loop that's set to run for the number of chunks to read (based on the total number of lines and the number of lines you want to read at a time). Hint: Quotient & Remainder function. In the loop use the Read Text File VI to read your set number of lines. Convert the lines to a 2D array delete your column, and write out that chunk of data to the new file. Rinse and repeat.

  • Bad performance when deleting report column in webi(with "Design – Structure only")

    Hi all,
    One of our customer has recently upgraded from BO XI to BO4.1. In the new BO 4.1, they encountered a bad performance issue when they were deleting a column in Webi(using "Design – Structure only" mode).
    With “Design – Structure only" mode,  it took webi about 10 seconds to complete after the customer right-clicked a report column and clicked the "delete".  The customer said that they only need to wait for less than 1 second when they did the same in BO XI old version.
    The new BO version used is 4.1SP02, installed in Windows Server 2008 R2. (Server with 32 core CPU, 32G memory)
    This bad performance happened in both Webi web and Rich Client. (in Webi Rich Client, the performance is a little bit better. The 'delete column' action takes about 8 seconds to complete).
    Do anyone know how to tune this performance in webi?  Thank you.
    Besides, it seems that each time we are making change in the webi report structure in IE or Rich Client, webi need to interact with Server site to upload the changes. Is there any option to change this behavior?  Say, do not upload change to Server for when 'deleting report column', only trigger the upload after a set of actions(e.g. trigger when click the "Save" button).
    Thank you.
    Regards,
    Eton.

    Hi all,
    Could anyone help me on this?  Thanks!
    What customer concerns now is that when they did the same 'column editing' action in BO XI R2 for the same report, they did not need to wait.  And they need to wait for at least 7-8 second in the BO 4.1SP02 environment for this action to complete.(data already purged, in structure-only mode)
    One more information about the webi report being editing is: there are many sheets in the report(about 6~10 sheets in one report). Customer don't want to separate these sheet into different reports  as it will increase the effort of their end users to locate similar report sheets.
    Regards,
    Eton.

  • In wendynpro,  i need to delete unwanted columns in ALV..

    Hi experts,
       In Webdynpro, I have selected some fields in context node through dictionary structure and to display those fields in ALV . Im getting the values for corresponding fields which i have selected but im  also getting other fields of the database dictionary structure in ALV.. Can anyone help me to delete  other fileds in it..
    Thanks in advance..
    Edited by: sivaprasath sekar on May 28, 2009 11:22 AM

    Hi,
    Use following code to delete the column from ALV.
    Here we are using config. model of ALV to delete the column.
    DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
    lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).
      DATA lv_value TYPE REF TO cl_salv_wd_config_table.
      lv_value = lo_interfacecontroller->get_model(
    CALL METHOD lv_value->if_salv_wd_column_settings~delete_column
      EXPORTING
        id     = 'CARRID'
    Instead of carrid you can pass your cotext_attribute which needs to be deleted.
    Thanks,
    Rahul
    Edited by: Rahul Yadav on May 28, 2009 11:30 AM

  • Delete a column from the table

    Hi.
    I would like to delete a column from a table. I want to drop the table and recreate it later. But this table has a primary key which
    is a foreign key of other tables. So after I recreate the table I must recover the relationship of this table and other tables.
    How do I get the information about the primary key of this table as a foreign key of other tables from data dictionary?
    Thanks in advance
    null

    For ur query the reply whay u have got is correct one. For further quries similar to one u had u can download a tool named TOAD (Tools for Oracle Application Developer) from quest site (www.quest.com). Install it a proceed.
    Do let me know how and what u feek about TOAD.

  • How do I delete a column for just one table and not all the others?

    I have multiple tabels in a Pages document. I want to delete some columns on some of the tables but keep them on the other tables. When I delete the columns it deletes all of them on all of the tabels and I dont want that.

    No. To do what you are asking for would require a separate table on each page.
    Of course you can always move blocks of cells around manually, but I can't imagine how you would manage that.
    Jerry

  • Not able to delete model column in ODI Designer

    When deleting a column from a data model I get an error "This object is referenced by another object".
    The column was used in the Target Datastore of two interfaces. I have opened both interfaces to the Diagram tab and unchecked the "Active Mapping" selection for the affected column on the Target Datastore. No delete feature seems to be available on the Target Datastore mapping.
    In the model I have expanded the "Used In" feature for the column and both "As a Source" and "As a Target" are empty.
    Any suggestions would be much appreciated. Thanks
    Rose

    Hey, thanks for your attention on this!
    Just as an update, the model column I wanted to delete still appeared in a couple of interfaces but I had shut off "Active Mapping" and unchecked "Insert" and "Update" so I expected to be able to delete the column from the model. Even though the column's "Used In" reference said it wasn't used anywhere, it continued to throw an error when attempting a delete.
    What happened is that I had not cleared the Implementation tab for the affected column in one of the interfaces. The column was originally to be hard-coded to an 'A'. Once I cleared the 'A' out of the mapping, ODI let me delete the column from the model.

  • Hide or Delete Empty columns in dynamic internal table

    Hi,
                                I am having an dynamic internal table which contains more than 100 columns.
             I need to delete empty column from that table, can any one help this.

    Hello,
    If you are talking about ALV then you can just the the table for empty columns before populating fieldcataloge and hide the columns.
    If your query is still not answered please provide a detail requirement.

  • I want to delete a column that is referenced in a formula in another column without deleting the other column

    How can I delete a column of numbers that are referenced in another column without deleting the other column?

    select the column to delect by click in the column header
    select the contextual menu for that column by clicking (and holding) the down arrow:
    select "Delete Column" to remove the column:

  • Goldengate DDL Capture only for 'ADDING and DELETING' a column

    Hi
    Source Oracle 11.2
    GG Version: 11.2
    Target Oracle 11.2
    I am configuring the replication between oracle-oracle and regarding DDL replication ,for few tables , in addition to the DML replication , i want to capture only the DDL's related to the structure changes to the table (only adding or deleting a column) and noting else for ddl. For this ,  is the below command sufficient for my requirement or do i need to have the 'exculde' parameter specifying all those that needs to be excluded.If anything else needs to be configured , please let me know .
    DDL INCLUDE MAPPED include optype 'alter'
    Thanks in advance.

    yes your command is sufficient for alteration...
    example:
    DDL &
    INCLUDE UNMAPPED &
    OPTYPE alter &
    OBJTYPE ‘table’ &
    OBJNAME “scott.tab*” &
    INCLUDE MAPPED OBJNAME “*” &
    EXCLUDE MAPPED OBJNAME "scott.temp*"

  • Capturing DDL only for 'ADDING and DELETING' a column

    Hi
    Source Oracle 11.2
    GG Version: 11.2
    I am configuring the replication between oracle-oracle and regarding DDL replication ,for few tables , in addition to the DML replication , i want to capture only the DDL's related to the structure changes to the table (only adding or deleting a column) and noting else for ddl. For this ,  is the below command sufficient for my requirement or do i need to have the 'exculde' parameter specifying all those that needs to be excluded.If anything else needs to be configured , please let me know .
    DDL INCLUDE MAPPED include optype 'alter'
    Thanks in advance.

    Appreciate if someone can throw some light on this  as i am a bit confused after reading the doc.
    Thanks

Maybe you are looking for

  • External procedure with Pro*C in it

    I have some C functions that I have compiled into a shared library on Unix. One of the functions contains a SQL statement to insert into a table, so I compile the file with Pro*C. It compiles fine. I have another C program that calls the function wit

  • Is there a way of preventing actions from continuing?

    I have some interactivity built into my slide which involves the user doing a fair amount of clicking. (The majority of these are 'Increment $$variable$$ by X). But it keeps continuing each time the learner clicks which means they skip to the next sl

  • (hr)problem with time-event upload

    hi friends, flowing codes like rpteup10 program. but we changed it. (december 2005) . but now there is problem not working . it is writing done but infotype 2011 from pa20 there is no change. maybe problem is fm HR_CC1_TIMEEVENT_INSERT. please help m

  • Working With iTunes

    Sorry if this isn't the right forum for this question - I'm a newbie. When I import a CD into iTunes I can't enter any info in the Artist, Genre, etc columns. Any clues for me? Thanks! jeajo

  • D810 NEF not recognized by lightroom 5.5

    llightroom 5.5 can't import NEF files from Nikon D810. Can someone pls help?