将string数组转化为sql的in条件
例如:我想将String[] str = {"4","5","6"}转化为“‘4’,‘5’,‘6’”字符串。这样我就可以用sql查询:select * from tableName id in (字符串)了。项目中实现的源码如下: StringBuffer idsStr = new StringBuffer(); for (int i = 0; i < i