My subject says it mostly. I have a form where the user can search by any keyword and wants to be able to seach by a date of the form "dd/mm/yy". Because of the slashes, I am getting no response. So I am trying to cast the search string as a varchar so it will compare to the characters and not ignore the numbers after the '/'s. The value being searched for is inside of a text field, but is not the only text.
This is what I have. I've tried it with and without the two single quotemarks.
select * from table where comment_field like '%cast(''3/3/04'' as varchar) %'
This is what I have. I've tried it with and without the two single quotemarks.
select * from table where comment_field like '%cast(''3/3/04'' as varchar) %'