db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramesh Sabeti" ...@reazon.com>
Subject RE: How to update multiple rows
Date Tue, 11 Nov 2003 16:29:45 GMT
That does it.  Thanks a lot...  

> -----Original Message-----
> From: Bill Leng [mailto:wleng@metatomix.com]
> Sent: Tuesday, November 11, 2003 6:18 AM
> To: Apache Torque Users List
> Subject: Re: How to update multiple rows
> 
> You can do something like this
> Criteria c = new Criteria();
> c.add(BookPeer.BOOK_PRICE, 0);
> c.add(BookPeer.BOOK_ID, 100, Criteria.LESS_THAN);
> BasePeer.doUpdate(c);
> 
> Ramesh Sabeti wrote:
> 
> >I have a very simple question: How do you do something like this with
> >Torque?
> >
> >	Update book set book_price = 0 where book_id < 100
> >
> >Wish there were more online resources.
> >
> >Thanks,
> >
> >Ramesh.
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> >For additional commands, e-mail: torque-user-help@db.apache.org
> >
> >
> >
> 
> --
> Bill Leng
> Sr. Software Engineer
> Metatomix, Inc.
> Tel: (901)261-8911
> Fax: (901)261-8901
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org



---------------------------------------------------------------------
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