如何将'"+g.getLearningfile()+"'
转换为java中的varbinary(max)
?
public int save(CourseModel g) {
String sql = "insert into TBL_COURSE (COURSE_NAME,COURSE_DESCRIPTION,COURSE_LEARNINGFILE,COURSE_CATEGORY_ID) values ( '"+g.getCourse_name()+"','"+g.getCourse_description()+"','"+g.getLearningfile()+"','"+g.getCoursecategory_id()+"')";
return template.update(sql);