Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: how to use executeupdate() when I connect to my jdbc?

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    11
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default how to use executeupdate() when I connect to my jdbc?

    Hello every one

    When I connect to my jdbc, and after that I want to use executeupdate() in Textarea in JFrame what can I do?

    Thank you in advanced


  2. #2
    Junior Member
    Join Date
    Apr 2013
    Location
    Earth
    Posts
    21
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: how to use executeupdate() when I connect to my jdbc?

    void update_function(String str)
    {
    //load all driver and connect to database
    int z= st.executeUpdate("Update Table_name where col_1='any_value'");
    }

    // this is the way you update the database, if z=0 then it states that query has been updated successfully !!
    /// TextArea TA1 = new TextArea();
    // update_function(TA1.getText());
    // I hope that it will help you !!

  3. The Following User Says Thank You to pawan4angel For This Useful Post:

    shirin (April 27th, 2014)

  4. #3
    Junior Member
    Join Date
    Dec 2013
    Posts
    11
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: how to use executeupdate() when I connect to my jdbc?

    That is very helpful,Thank you.

Similar Threads

  1. How to Connect to an Excel Spreadsheet using JDBC in Java
    By JavaPF in forum JDBC and Database Tutorials
    Replies: 14
    Last Post: August 27th, 2013, 11:57 AM
  2. connect to oracle Server via Jdbc
    By am.programmers in forum JDBC & Databases
    Replies: 2
    Last Post: August 12th, 2013, 02:25 AM
  3. Connect to MySQL database on remote IP/port through JDBC
    By javauser in forum JDBC & Databases
    Replies: 6
    Last Post: September 7th, 2012, 02:11 AM
  4. How to Connect to an Excel Spreadsheet using JDBC in Java
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 7
    Last Post: June 21st, 2011, 02:12 AM
  5. JDBC Oracle 10g - problems to connect
    By nestorkorni in forum JDBC & Databases
    Replies: 0
    Last Post: March 10th, 2011, 12:48 PM