2016-01-23 42 views
0

我想通過從〜選擇日期要生成的報告和要傳遞的那些值變量x和y在查詢的末尾寫入傳入晶體報告參數如何使用SQL命令數據庫專家

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 This and try to save

但它給我的錯誤

Please Help Thanks

回答

1

看到「參數列表」框在SQL命令的右邊是空的嗎?你想在那裏創建你的參數。此外,當你引用它們時,你想用大括號來做到這一點:{?x}

+0

謝謝巴迪... 它工作。 。 。 ! – Major

相關問題