向SQL插入数据是怎么插啊?
我插进去了  但老是有异常  说:java.sql.SQLException: No ResultSet set was produced.
部分代码如下import java.sql.*;class DataBase
{
String name;
String psw;
int age;
String sex;
String email;
public DataBase db = null;
private Connection con = null;
private Statement st = null;
public ResultSet rs = null;
//public ResultSet rsp = null;

public DataBase() throws Exception
{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
con = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=DataBase","sa","yuanfujie");
st = con.createStatement();
}

public boolean insert(String n,String p,int a,String s,String e) throws Exception
{
rs = st.executeQuery("insert into Login values('" + n + "','" + p + "','" + a + "','" + s + "','" + e +"')");
}
public static void main(String[] g) throws Exception
{
DataBase db = new DataBase();

}

}