Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 从表单中提取值并将参数(筛选器)发送到数据库服务_Mysql_Database_Forms_Orbeon - Fatal编程技术网

Mysql 从表单中提取值并将参数(筛选器)发送到数据库服务

Mysql 从表单中提取值并将参数(筛选器)发送到数据库服务,mysql,database,forms,orbeon,Mysql,Database,Forms,Orbeon,在我的配置中,我尝试下一个comand(BD mysql): 从Cordloc中选择用户、名称、姓氏 何处用户= 此数据库服务与drowpdown有关,但当我包含以下句子时,“where user=“”, 这不管用 我尝试使用show en drowdown name user,但使用用户登录名orbeon进行筛选(表中的值是相同的“orbeon”) 拜托,你能帮我一下吗 非常感谢。您不能在查询中使用XPath表达式,例如/form/section-1/usuario。相反,select属性的

在我的配置中,我尝试下一个comand(BD mysql):

从Cordloc中选择用户、名称、姓氏
何处用户=
此数据库服务与drowpdown有关,但当我包含以下句子时,
“where user=“
”, 这不管用

我尝试使用show en drowdown name user,但使用用户登录名orbeon进行筛选(表中的值是相同的“orbeon”)

拜托,你能帮我一下吗


非常感谢。

您不能在查询中使用XPath表达式,例如
/form/section-1/usuario
。相反,
select
属性的值必须保留为空(如中所述)

相反,您可以从操作中将值“馈送”到服务。在“操作编辑器”中的“设置数据库服务参数”下,可以说给定字段中的值应用于SQL查询的参数

SELECT user, name, lastname FROM Cordloc 
where user=<sql:param type="xs:string" select="/form/section-1/usuario"/>