1、获取当前插入数据的id值 String sql = "insert into usercontent(title,content) values(?,?)select scope_identity()";