<cfquery name="LOCAL.qrySelEvents" datasource="#variables.datasourceSettings.getDatasourceName()#" result="LOCAL.qryData" >
SELECT evt_id,
acnt_dba_name,
form_id,
'#application.portals.data[request.applicationName].profileRootPath#form/index.cfm'
|| CHAR(63)
|| 'PKformID= '
|| #preserveSingleQuotes(LOCAL.formIdSql)# AS primaryFormURL,
FROM events
</cfquery>
我必须将 #application.portals.data[request.applicationName].profileRootPath#form/index.cfm 与 char(32) 和 PKformID= ' || #preserveSingleQuotes(LOCAL.formIdSql)#。我使用过||
postgres 的运算符。但这给了我一个错误:
错误:“||”处或附近的语法错误
你能帮我吗?