为什么jdk1.8不支持sql.append,该如何解决
StringBuilder sql = new StringBuilder("SELECT ID,COMMAND,DESCRIPTION,CONTENT FROM message where 1= 1"); if(command!=null&&!"".equals(command.trim())) { sql.append(" and COMMAND = ? "); }
孜孜不倦,必能求索;风尘仆仆,终有归途。
StringBuilder sql = new StringBuilder("SELECT ID,COMMAND,DESCRIPTION,CONTENT FROM message where 1= 1"); if(command!=null&&!"".equals(command.trim())) { sql.append(" and COMMAND = ? "); }
孜孜不倦,必能求索;风尘仆仆,终有归途。