I'm trying to write a query which fetches the current date and gets the relevant log data. Have written a nested query which works from PL/SQL but it isn't working from Python environment. Please advise.
Working query for PL/SQL:
SELECT * FROM TBLIRISVISITLOGS TLOG
WHERE TLOG.IVL_VISITDATE = (SELECT TO_CHAR(SYSTIMESTAMP,'DD-MON-YYYY') FROM DUAL)
When I execute this query in Python environment, it fetches an empty table.
WHERE TLOG.IVL_VISITDATE = CURRENT_DATE?