This commit is contained in:
laodaming 2023-06-12 11:15:58 +08:00
parent 6919d7c02f
commit 7d21c9ebc8

View File

@ -1,12 +0,0 @@
package sql_placeholder
import "strings"
// 获取对应长度占位符号
func GetSqlPlaceholder(l uint) string {
s := make([]string, 0, int(l))
for i := 0; i < int(l); i++ {
s = append(s, "?")
}
return strings.Join(s, ",")
}