On Wed, Nov 9, 2011 at 1:56 PM, Ashish Kulkarni <ashish.kulkarni13@xxxxxxxxx
wrote:


select * from mycontact where email = 'myemail@xxxxxxxx'; this query does
not return any rows, but if i modify the query like below

select * from mycontact where email *like 'myemail@xxxxxxxx%'*; it
returns
data, so i believe is there is some weird data after *.com *, but if i run


Perhaps you have null-delimited string in email column. That is, a x'00'
character following the displayable characters.

A diagnostic query may help :

select email, hex(email) as email_in_hex
from mycontact where email *like 'myemail@xxxxxxxx%'*;




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.