oracle 大文本字段blob的处理

		String content = bean.getContent();

		bean.setContent("~~?~~");
		
		try {
			String sql = "";
			//转换成sql
			sql = BeanManager.getUpdateSql(jsonObj, fieldPrefix,tableName,fkName,nameValue,filterBeanNames,blobBeanNames);
			sql = sql.replace("'~~?~~'", "?");

			jt.prepareStatement(sql);	
			
			ByteArrayInputStream stream = new ByteArrayInputStream(content.getBytes());
	
			jt.setBinaryStream(1, stream, content.getBytes().length);	
			
			jt.executeUpdate();
			jt.commit();
			result = true;
		} 

 

 

 


 

你可能感兴趣的:(oracle,sql,Stream,String)