spring的jdbcTemplate insert 语句



public boolean saveStdCourseByScId(int uid, int cid) {
		
		String sql = "insert into 7east_usercourse_right(userid,courseid) values(?,?) ";
		
		Object[] args = new Object[] { uid, cid };
		 
		 getJdbcTemplate().update(sql,args);
			return true;
	}

你可能感兴趣的:(java,spring,sql)