
March 31st, 2004, 01:39 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 20
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
How do u select a date in oracle???
When i type what is below, i get the order_entrydate returned for that ID. This order_entrydate was generated by sysdate in my asp code to oracle.
SQL> select order_entrydate from orders where order_id=1;
ORDER_ENT
---------
31-MAR-04
However, when i do it the opposite way, there are no rows selected. I tried various formats for the date, but i cant seem to return anything. what went wrong??
SQL> select order_id from orders where order_entrydate='31-Mar-04';
no rows selected
|