db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <Fisc...@seitenbau.net>
Subject RE: need help
Date Tue, 13 Jul 2004 09:01:08 GMT




1)  There is an entry in the wiki in the section "Frequently asked
Questions" which describes how to execute a "count(*) from table where..."
using criteria without explicitly creating the statement.

2) As far as I know, subselects are not supported by criteria, so I guess
you will either have to use BasePeer.executeStatement(String query) and
construct the query by hand, or first do the subselect and then insert the
results in another criteria using criteria.addIn()

   Hope that helps,

       Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message