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.  [ 1 post ] 
Author Message
 Post subject: using db2 function question
PostPosted: Wed Nov 24, 2010 4:13 am 
Newbie

Joined: Wed Nov 24, 2010 4:05 am
Posts: 1
i use hql ' from t1 where locate('s',(color) )>0 '
this works ok.

but when use 'from t1 where locate('s',(select color from Atzsoccer where id=2) )>0 '
it does not work :DB2 SQL Error: SQLCODE=-440, SQLSTATE=42884, SQLERRMC=LOCATE;FUNCTION, DRIVER=3.58.82

i think it because the second cotains subquary

question is ,how can i using a subquary in hql


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

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.