-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: How do I compare strings with no special case?
PostPosted: Sun Jun 27, 2004 6:32 pm 
Senior
Senior

Joined: Sun Oct 26, 2003 5:05 am
Posts: 139
How do I compare strings with no case? For example, a string might be "Business" in the database, but I'd like to find it by "business". I've tried the LIKE operator and lower() on both the column name and the value, but those don't seem to work. Any suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 28, 2004 1:12 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
lower() work for sure. Whitch DB ?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 28, 2004 3:20 pm 
Newbie

Joined: Wed May 12, 2004 5:12 pm
Posts: 8
Location: Frankfurt / Germany
Lower() or upper() shoud work absolutely fine, I'm using upper() on oracle in production code and it runs without any problems.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.