我有 3 个变量:
var1="abc"
var2="def"
sqlPrefix = "select x,y in myTable where myVar in "
我想创建一个字符串('abc','def')
,所以我可以直接将它连接到末尾sqlPrefx
,所以我的最终字符串是select x,y in myTable where myVar in ('abc','def')
我有 3 个变量:
var1="abc"
var2="def"
sqlPrefix = "select x,y in myTable where myVar in "
我想创建一个字符串('abc','def')
,所以我可以直接将它连接到末尾sqlPrefx
,所以我的最终字符串是select x,y in myTable where myVar in ('abc','def')