在参数化查询中,我想将参数作为结果中的附加列包含在内。我该怎么做?
我试过像
这样的东西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.