String codeString = codes
.stream()
.reduce("'", (s1, s2) -> s1 + ",'" + s2 + "'")
.substring(2);
String codeString = codes
.stream()
.reduce("'", (s1, s2) -> s1 + ",'" + s2 + "'")
.substring(2);
本文标题:SQL拼接 列表转字符
本文链接:https://www.haomeiwen.com/subject/smarzrtx.html
网友评论