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!

LIKE operator does not work with DATE

dprogrammerxNov 18 2010 — edited Nov 19 2010
Hi,
I have a simple select and in the WHERE clause if I use LIKE with a date field it does not work but it works with a string field. For example:
--does not work. does not bring any rows
Select * From MyTab
Where  time_period Like '%';
--works and brings ALL data
Select * From MyTab
Where  level_code Like '%';
Where time_period is of DATE datatype and level_code is VARCHAR2.
This post has been answered by Frank Kulash on Nov 19 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2010
Added on Nov 18 2010
16 comments
14,027 views