Monday, April 1, 2013
java insert query in msacess
try {
String fn = request.getParameter("fn");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:assert");
Statement st=con.createStatement();
String crt="insert into cool values('"+fn+"')";
int cnt=st.executeUpdate(crt);
out.println("working");
}
catch(Exception e )
{
out.println(e);
}
Labels:
JAVA
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment