在参数化查询中,我想将参数作为附加列包含在结果中。我该怎么做呢?
我尝试了类似的东西
SELECT tbl.colA, tbl.colB, :START_DATE AS START_DATE, :END_DATE AS END_DATE
FROM table_name tbl
WHERE tbl.start_date >= :START_DATE
AND tbl.end_date <= :END_DATE
执行上述操作,我收到此错误:
Type of the parameter 'START_DATE' is ambiguous.