I am confusing how can I code in Python.
Following code works from pgsql command line.
select * from consultation_tbl where consultation_status in ('S','C','R');
But in Python, I have no idea how to code.
chat_str = "\'S\',\'C\',\'R\'"
cursor.execute(" \
SELECT * FROM consultation_tbl
WHERE consultation_status IN ( %s )", [chat_str])
Please give me an advice.