JDBC update Java source code
#1

import java.sql.*;
import java.io.*;

public class JDBCupdate
{
public static void main(String args[])
{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c=DriverManager.getConnection
("jdbc:odbc:rama;uid=scott;pwd=tiger;");

Statement st=c.createStatement();
String stname="sunil";
String temp;
int stno=3;

DataInputStream stdin=new DataInputStream(System.in);
System.out.print("Enter the stno:");
System.out.flush();
temp=stdin.readLine();
stno=Integer.parseInt(temp);

System.out.print("Enter the new name:");
System.out.flush();
stname=stdin.readLine();


try{
st.executeUpdate("INSERT INTO student VALUES(136,'venkat',82)");
// System.out.println("Number of ROWS effected:"+i);

}
catch(Exception e)
{
System.out.println("inside:"+e);
}
}
catch(Exception e)
{
System.out.println(e);
}
}
}

Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: searching source code for library books using jdbc, karmasangsthan headline update, student attendance system by using java jdbc requirements, jdbc program for library management system, karmasanghatan paper last update, hotal management programs using swings jdbc download, student attendance system by java using jdbc,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  Simple Key Events Java source code smart paper boy 3 3,561 07-02-2017, 03:41 PM
Last Post: NARESHLAFOOT
  Window Events Java source code smart paper boy 1 3,640 02-03-2012, 10:48 AM
Last Post: seminar paper
  Inter net banking java source code smart paper boy 3 5,907 01-03-2012, 11:24 AM
Last Post: seminar paper
  UDP server java source code smart paper boy 1 3,784 05-01-2012, 05:50 PM
Last Post: jeslinapeter
  UDP client Java source code smart paper boy 2 3,640 12-12-2011, 09:56 AM
Last Post: seminar addict
  Text Demo Java source code smart paper boy 0 2,055 30-08-2011, 12:44 PM
Last Post: smart paper boy
  Text Area Demo Java source code smart paper boy 0 2,058 30-08-2011, 12:44 PM
Last Post: smart paper boy
  Servlet Database Java source code smart paper boy 0 2,435 30-08-2011, 12:42 PM
Last Post: smart paper boy
  server test Java source code smart paper boy 0 2,247 30-08-2011, 12:42 PM
Last Post: smart paper boy
  Ser To App java source code smart paper boy 0 1,659 30-08-2011, 12:39 PM
Last Post: smart paper boy

Forum Jump: