Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Comparing Date values

SmileMay 25 2012 — edited Jul 24 2012
To a procedure i'm passing date as input parameter
      procedure test (ipd_date date )   
	 Example format is   TO_DATE ('05/24/2012 09:26:46 PM', 'MM/DD/YYYY HH:MI:SS PM)
	  
In a table also the data is loading in the above format. Table column is DATE type
Now i need to compare the in parameter ipd_Date with the column in the table
	  BEGIN
	 select count(*) into  v_cnt
	   FROM test_tab
	    where dt = ipd_date.
      
Though the record in the table is also having the same format TO_DATE ('05/24/2012 09:26:46 PM', 'MM/DD/YYYY HH:MI:SS PM)
I'm not getting any row
How to compare those values .

Could you help me in this.

Edited by: Smile on May 25, 2012 9:45 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2012
Added on May 25 2012
19 comments
496 views