获取 ? 号出现的次数
String str = "insert into sys_test (id,name) valeus (?,?)";
int count = sql.length() - sql.replaceAll("\\?","").length();
感谢您的支持,写的文章如对您有所帮助,开源不易,请您打赏,谢谢啦~
获取 ? 号出现的次数
String str = "insert into sys_test (id,name) valeus (?,?)";
int count = sql.length() - sql.replaceAll("\\?","").length();
感谢您的支持,写的文章如对您有所帮助,开源不易,请您打赏,谢谢啦~