[英]How to pass parameters in crystal report using SQL command database Expert
I want to generate report by selecting the date from ~ To and want to pass those value to variable x and y written at the end of the query 我想通过选择〜到的日期来生成报告,并将这些值传递给查询末尾写的变量x和y
SELECT accounts.invoice, tempClient.name, tempClient.businessName,
tempClient.contactNumber,accounts.total, accounts.remaining
FROM accounts
INNER JOIN tempClient
ON accounts.clientCode = tempClient.id where accounts.[dateTime] between ?x and ?y
Like 喜欢
But it gives me the error 但这给了我错误
saying 说
See that "Parameter List" box that is empty to the right of your SQL Command? 看到您的SQL命令右边的“参数列表”框是空的吗? You want to create your parameters there. 您要在此处创建参数。 Also, when you reference them you want to use curly brackets to do it: {?x}
另外,引用它们时,您想使用大括号: {?x}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.