例如:我想将String[] str = {"4","5","6"}转化为“‘4',‘5',‘6'”字符串。这样我就可以用SQL查询:select * from tableName id in (字符串)了。 项目中实现的源码如下:
<div class="codetitle"><a style="CURSOR: pointer" data="12522" class="copybut" id="copybut12522" onclick="doCopy('code12522')"> 代码如下: