db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Rana" <r...@solis.jp>
Subject RE: How to update multiple rows
Date Tue, 11 Nov 2003 06:18:13 GMT
Peer classes have doUpdate methods check the javadocs for more details.
One of the methods takes two Criteria objects as input, one is used for
where and another for setting values.

HTH.

Amit.

> -----Original Message-----
> From: Ramesh Sabeti [mailto:rs@reazon.com]
> Sent: Tuesday, November 11, 2003 1:51 PM
> To: 'Apache Torque Users List'
> Subject: How to update multiple rows
> 
> 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


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