-->
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.  [ 2 posts ] 
Author Message
 Post subject: Query CSV value in field
PostPosted: Thu Mar 25, 2010 4:06 pm 
Newbie

Joined: Thu Mar 25, 2010 3:16 pm
Posts: 2
I am working with a database that has multiple values stored as CSV in a varchar field such as:

value1,value2,value3 or with spaces value1, value2, value3

Is there an expression in HQL that I can employ so that I can build queries like:

select * from mytable where 'value2' in some_exp(csvfield)

I'd prefer not to use LIKE because of false positives, searching for doctor would return doctoral, etc.

Thanks


Top
 Profile  
 
 Post subject: Re: Query CSV value in field
PostPosted: Wed May 19, 2010 5:10 pm 
Newbie

Joined: Thu Mar 25, 2010 3:16 pm
Posts: 2
Is this thing on?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.