pstmt = conn.prepareStatement("insert into columninfo(columntitle,reid,topid) values(?,?,?)");
pstmt.setString(1, column.getColumntitle());
pstmt.setInt(2, column.getReid());
pstmt.setInt(3, column.getTopid());
return pstmt.execute();
public ResultSet executeQuery() throws SQLException
返回一个不为空的结果集
public int executeUpdate() throws SQLException
返回:1、返回INSERT、UPDATE或者DELETE语句执行后的更新行数;
2、返回0表示SQL语句没有执行成功。
public boolean execute() throws SQLException
返回:true表示SQL语句执行的结果返回ResultSet对象;
false表示SQL语句执行结果返回的是更新行数或者没有返回。
联系客服