db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keeney, Thomas" <Keen...@SEC.GOV>
Subject RE: How to do when i want to query like "select * from book where book.name like 'TCP' "?
Date Tue, 29 Jul 2003 16:52:27 GMT
Try something like this,

Criteria crit = new Criteria();
crit.add(bookPeer.NAME, 'TCP', Criteria.LIKE);
List results = bookPeer.doSelect(crit);

Regards,
Tom

-----Original Message-----
From: sailorhero [mailto:sailorhero@hotmail.com]
Sent: Tuesday, July 29, 2003 10:23 AM
To: torque-user@db.apache.org
Subject: How to do when i want to query like "select * from book where book.
name like 'TCP' "?


I used toruqe at Mssql database.
I want to query something like this SQL :

select * from book where book.name like 'TCP' 

but how to use torque to query this?

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