在 SQL Developer 中,此脚本返回预期的结果集:
define FromDate = '02-03-2019';
define ToDate = '02-05-2019';
select * from TEST_TABLE
where test_date >= to_date('&&FromDate', 'MM-DD-YYYY')
and test_date < to_date('&&ToDate', 'MM-DD-YYYY')
相同的查询不在 Toad 中运行;它会产生ORA-00900: invalid SQL statement
错误。
我的问题是,如何在 Toad Data Point 中运行此查询而无需添加更多代码行且无需在Bind Variables
弹出窗口中重新输入值?