Hello,
I am trying to pass a date parameter in a select statement such as select * from Names where Last_update = To_Date('01/30/2004', MM/DD/YYYY)
When I try to use a variable for the parameter I cannot get the query to execute. For example: select * from Names where Last_update = To_Date(seldate, 'MM/DD/YYYY').
I simply keep getting a syntax error message when I run into my executereader statement.
I'd appreciate any help or advice.
Thanks,
Jim
I am trying to pass a date parameter in a select statement such as select * from Names where Last_update = To_Date('01/30/2004', MM/DD/YYYY)
When I try to use a variable for the parameter I cannot get the query to execute. For example: select * from Names where Last_update = To_Date(seldate, 'MM/DD/YYYY').
I simply keep getting a syntax error message when I run into my executereader statement.
I'd appreciate any help or advice.
Thanks,
Jim