CLICK HERE TO EARN MONEY FREE

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);
        }

0 comments:

Post a Comment

 

TEKONOLOGY Copyright © 2011 -- Template created by TEKONOLOGY -- Powered by Blogger