import java.sql.*; public class Maksesisestus{ public static void main(String argumendid[]) throws Exception{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection cn=DriverManager.getConnection( "jdbc:odbc:yhendus1", "", ""); String lause="INSERT INTO maksed (firma, makse) VALUES (?, ?)"; PreparedStatement st=cn.prepareStatement(lause); st.setString(1, argumendid[0]); st.setInt(2, Integer.parseInt(argumendid[1])); st.executeUpdate(); cn.close(); } }