当前位置:Gxlcms > mysql > mysql模糊查询匹配特殊字符

mysql模糊查询匹配特殊字符

时间:2021-07-01 10:21:17 帮助过:10人阅读

StringBuilder selectStatement = new StringBuilder(128).append(select).append(verbosity.getColumnSelectFragment()); StringBuilder fromStatement =new StringBuilder(128).append(from).append(tableName).append(where); fromStatement.append(COLUM

StringBuilder selectStatement = new StringBuilder(128).append("select").append(verbosity.getColumnSelectFragment());
StringBuilder fromStatement =new StringBuilder(128).append("from").append(tableName).append("where");

fromStatement.append(COLUMN.NAME.aliasAndName).append("like ? escape ?");

List params = new ArrayList();

params.add("%" + DB_ADAPTER.escapeAllWildcardsForLikeStatement(name) + "%");
params.add(DB_ADAPTER.getLikeEscapeSequence());

人气教程排行