Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在从 xslt 向扩展函数发送一些 sql 查询,如下所示:
<xsl:variable name="var1" select="ext:ExecuteSQL(concat('select * from [TABLE1] where COLUMN1='',name,'''))"/>
我得到的错误是expected token ')', found 'name',我猜这是由于'and的连续发生'。那么,我怎样才能逃脱这个角色呢?
expected token ')', found 'name'
'
'
我通过交换select属性的单引号和双引号解决了这个问题,如下所示:
<xsl:variable name="var1" select='ext:ExecuteSQL(concat("select * from [TABLE1] where COLUMN1='",name,"'"))'/>