result=format(where %s %s "%s"'.[field,condition,param]);,是什么意思,。请教各位大哥(5分)

  • 主题发起人 pchddcat
  • 开始时间
P

pchddcat

Unregistered / Unconfirmed
GUEST, unregistred user!
result=format(where %s %s "%s"'.[field,condition,param]);,是什么意思,。请教各位大哥
 
应该是:
result=format('where %s %s "%s"'.[field,condition,param]);
where前面需要一个引号。
表示返回结果是一个格式化的字符串,假设:
field = 'age'
condition = '>'
param = '20'
那么结果就是:
where age > "20"
 
同意LuJuHe的解释
 
顶部