-->
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 to use "as" ?
PostPosted: Mon Mar 29, 2004 11:13 pm 
Newbie

Joined: Fri Aug 29, 2003 3:58 am
Posts: 4
I use :
select test.name as myname from Test test

it's wrong,because of "as myname"!!!!!

if I want to use "as ... " how to do?

regards

crpp88@hotmail.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 30, 2004 12:38 am 
Newbie

Joined: Mon Oct 20, 2003 12:18 pm
Posts: 12
Location: Mexico
You need to add as in the name of the table
select test.name as myname from Test as test


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 30, 2004 3:45 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
HQL does not have an as in the select clause. Check the doc.


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.