-->
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: Conversion String to Integer avec HQL ou Creteria API
PostPosted: Tue Sep 13, 2005 4:34 am 
Newbie

Joined: Tue Aug 30, 2005 1:48 pm
Posts: 15
Hibernate version:3

En utilisant HQL ou critéria PI, comme peut on convertir un champ VARCHAR en NUMBER : je veux faire la somme d'un champ de ma table seuelement il est déclaré vARCHAR au lieu de NUMBER.

Merci pour votre aide


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 16, 2005 4:47 pm 
Senior
Senior

Joined: Tue Jan 11, 2005 5:03 pm
Posts: 137
Location: Montreal, Quebec
Est-ce que tu as essayé d'utiliser la fonction

sum(convert(NUMERIC, colonne))?

Etienne.


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.