How do you delete records from table with data in a select option

how do you delete records from table with relevant to data in a select option..how to write coding

Hi,
Try
if not s_select_option [ ] is initial.
delete * from table
where field in s_select_option.
endif.
commit work.
Be careful though. If select option is emty, you will delete the entire table.
Regards,
Arek

Similar Messages

  • How do I configure a dynamic table with Data-Drop Down selections to store separate values?

    I am attempting to use LiveCycle to create an Order Form that uses an ODBC to a SQL database. When a user makes a selection, a separate column in the table references the "Item #" associated in the SQL table, and generates a corresponding barcode.
    My problem is that when I select an Item from the drop down list, all the items in the table change. What am I missing here to separate the rows as different line items? I tried adding a [*] to the end of the connection string, and that allows me to select different options but does not generate the "Item #" or "Barcode" field.
    The screenshot below shows the basic form. When I select any of the data drop downs, all of the Items change.
    I used the auto generated script for the "Add Row +" button shown below. Is this my issue? Or do I need to alter the way I'm setting up the Data Binding in for my Data Drop Down?
    this.resolveNode('Table1._Row1').addInstance(1);
    if (xfa.host.version <8) {
      xfa.form.recalculate(1); }

    package pruebadedates;
    import java.sql.*;
    * @author J?s?
    public class ClaseDeDates {
        /** Creates a new instance of ClaseDeDates */
         * @param args the command line arguments
        public static void main(String[] args) {
            java.sql.Date aDate[] = null;       
            Connection con = null;
            Statement stmt = null;
            ResultSet rs = null;
            try{
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                con = DriverManager.getConnection("jdbc:mysql://localhost/pruebafechas", "root", "picardias");
                    if(!con.isClosed()){
                    stmt = con.createStatement();
                    stmt.executeQuery ("SELECT dates FROM datestable");
                    rs = stmt.getResultSet();
                        while (rs.next())
                        aDate[] = rs.getDate("dates");
            catch(Exception e)
               System.out.println(e);
            //System.out.println(aDate);     
    }Hi, There is my code and the errors that I get are:
    found : java.sql.Date
    required: java.sql.Date[]
    aDate = rs.getDate("dates");
    Actually I have No idea as How to get a Result set into an ArrayList or Collection. Please tell me how to do this Dynamically. I have like 25 records in that Database table, but they will grow, so I would really appreciate to know the code to do this. I suspect my problem is in the bolded part of my code.
    Thank you very much Sir.

  • How do you delete photos from your iphone?

    how do you delete photos from your iphone?

    Goto Settings, select iCloud, select PhotoSteam, and turn it off - you will get a warning message that this will delete the photos in photostream (but they are in your camera roll and albums so no worries) and delete.  You will now have only Camera Roll (where you CAN delete photos directly on your phone), and any albums you've imported - which you can sync using iTunes.
    Otherwise you can also loginto iCloud from Mac or PC and delete the photostream there
    hope Apple changes this for future upgrades - would like to be able to delete ALL photos directly on my phone

  • Delete records from tableA which are not in tableB

    Table A contains milions of records which is the best way to delete records from tableA which are not in tableB
    delete from tableA where empno not in (select empno from tableb)
    or
    delete from tableA where empno not exists (select empno from tableb
    where b.empno=a.empno)
    any help

    Hi
    If you can do this, do with this:
    create table tableC
    as select a.*
    from tableA a,
    (select empno from tableA
    minus
    select empno from tableB) b
    where a.empno = b.empno;
    drop table tableA;
    rename table tableC to tableA;
    Ott Karesz
    http://www.trendo-kft.hu

  • How do you delete file from time machine back up?

    How do you delete file from time machine back up?

    This from Apple KB Article  If Time Machine is not in your Dock, you can enter Time Machine from the Menu Bar or System Preferences.
    Deleting data from a Time Machine backup
    To delete all backups of one or more items from a Time Machine backup, follow these steps:
    Click the Time Machine icon on your Dock to enter the Time Machine restore interface.
    Click on the item you would like to delete. Command-click to select multiple items.
    Control-click (or right click) the highlighted item(s) and select "Delete All Backups of..." from the contextual menu, or select "Delete all backups of..." from the Action Item menu.
    Authenticate with an administrator password when prompted.

  • How do you delete items from the reading list?

    How do you delete items from the reading list?

    I'm trying to mark your reply as "solved my problem", but I can't see where to mark it. I tried to mark it in the email that came to me with your answer, but it went to a screen that said NOT FOUND. Help?

  • How do you delete albums from an I-phone 4,only able to delete from camera roll,but not the other albums

    How do you delete albums from an I-phone 4,only able to delete from camera roll,but not the other albums

    How did the photos get onto the phone ? Only photos taken with the phone or saved from emails/websites etc can be deleted directly on the device. Photos that were synced from your computer are deleted by moving/removing/de-selecting them from where they were synced from on your computer and then re-syncing.

  • How do you delete contacts from your phone for good without having it appear in the messages app?

    How do you delete contacts from your phone for good without having it appear in the messages app?

    Hi tieyce,
    You need to hook up your iPhone, select it under Devices, and then go to the Photos tab on the Device Profile, and uncheck Sync Photos, then sync. That should delete all photos that were downloaded from your computer.
    When you say you have 2 separate albums of the same sets of pictures, what 2 albums are you referring to? Can you provide us with names of those "duplicate" albums?
    Cheers,
    GB

  • How do you delete songs from an iphone?

    How do you delete songs from an iphone 4?  Some how an album that I bought on itunes doubled the songs on my phone.

    You can do this with iOS5 phones.
    scroll to any song on the list you wish to delete
    Swipe left or right with 1 finger
    a "Delete" button in red will appear
    Same with hiding purchases in your app store app, flick left or right to and tap hide to remove it from the list
    Does it work?

  • How do you delete photos from the ipad?

    how do you delete photos from ipad!

    Deleting Photos from iPad: Faced withthis problem, I looked for and found that a few other people werealso worried about it. I use Windows XP Professional and have an iPad2 (16GB).
    Deleting photos from the iPad turnedout to be quite easy after I connected the iPad to the PC with theUSB Cable. Using My Computer (in Windows Explorer) on the PC, I founda graphic showing a camera and a PC after clicking on the iPad 2. Allthe photos and videos in the iPad (not resident in any special apps)were displayed. Just to be safe, I first copied all photos, and videoclips, from iPad to a specially created folder on the PC. After thatit was easy to select all files on the iPad with CtlA and deletethem. I could have deselected any of them by Ctl and left click, if Ihad wanted to retain any on them on my iPad.
    Earlier I had downloaded a PhotoTransfer app. This did not help in deleting but was nice for WiFitransfers of photos, especially between the iPad and the iPod. But Inow see better options for the same $2.99 price.
    The app I would recommend is PhotoManager Pro by Linkus. It promises to do every action you may needrelated to handling photos on the iPad. But if you are an inveteratePicasa user, you could consider the $3.99 app Web Albums for iPad - APicasa Photo Viewer, Uploader, and Manager By Scott Sykora.
    In short, not just deleting photos butmanaging them in various ways on the iPad has now become easy. Goodluck with your handling of it!

  • How do you delete icloud from your iphone

    How do you delete icloud from your iphone.  I share an apple account with my kids and now we all have my information on our iphones and I don't want to use icloud until they get their own apple accounts.  anyone know how to remove it?

    Settings>Music>Show All>Off

  • How do you delete songs from Itunes? I have many that show up as many as 7 times and itunes will not allow me to remove them.

    How do you delete songs from Itunes? I have many that show up as many as 7 times and itunes will not allow me to remove them.

    I have tried to Hilight them and hit Control Delete nothing happens. I tried to just Delete one, but when you hit delete nothing happens.

  • How do you delete albums from the music app in iOS 7?

    How do you delete albums from the music app in iOS 7?

    You use to be able to in the last IOS and it was a nice feature and now it's gone. iOS7 ruined the Music App!

  • How do you delete photos from your iPad without deleting them from your Mac or iCloud?

    How do you delete photos from your iPad without deleting them from your Mac or iCloud?

    in iPad to Delete a photo or video: Tap trash icon. If you don’t see trash icon, tap the screen to display the controls.
    If they were added from your computer, you need to Sync and uncheck them and then sync again...
    Ipad User Guide  Page 61
    http://manuals.info.apple.com/en_US/ipad_2_user_guide.pdf

  • How do you delete music from an iPhone 5

    How do you delete music from an iPhone 5?

    Swipe RIGHT-to-left across the song in the Music app, tap delete.

Maybe you are looking for