Hi all,
I have this question:
if in a Java program I have a fragment of code like the following:
--------------
String sql = "SELECT People.firstName, People.lastName FROM People order 
by lastName";
PreparedStatement pst = conn.prepareStatement(sql);
ResultSet rs = pst.executeQuery();
how can I search a value int it without scanning all records in the 
resultSet with a �while(rs.next())�? I would search, for example, the 
lastName �Berry�.
Thank you.
-- 
Prof. Francesco Pagano, eMail: [EMAIL PROTECTED]
Direttore Generale
P&P Informatics, v.Consolare Pompea, 1897, 98165 Messina
Tel.: +39 090395659, Fax: +39 0903973146

_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to