Hi,
it's a JDBC problem. You must always access the columns (and the
records) of a resultset in the same order they appear. Have you noticed
that there isn't a previous() method in ResultSet class? But there's the
next().
Bye.
On Wed, 21 Feb 2001, Muhammad Asim Ajmal wrote:
> hi!!!!
>
> i want to know some thing about sequence problem for getting result from a
> query,
>
> e.g. select a, b, c, from table;
>
> then !!
> rst.getString("a");
> rst.getString("b");
> rst.getString("c");
>
> well this works fine,, but if i change the sequence like
>
> rst.getString("b");
> rst.getString("a");
> rst.getString("c");
>
> this create the problem,,, i wanna over come this problem,,, has API3 of
> JDBC can
> give the solution???
>
> currnetly i m using SQL Server database and JDBC type 2 drivers...
>
> waiting for reply
>
> ---------------------------------------------------
> ASIM
> VisualSoft Development (Pvt) Ltd.
> #301, Peshawar Road,
> Rawalpindi Cantt 46000,
> Pakistan.
> www.visualsoft-inc.com
> ---------------------------------------------------
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
T+
--------------------------------------------------------------------------
Rodrigo de Oliveira Lopes "Nao me entrego sem lutar
Mestrando em Ciencia da Computacao Tenho ainda coracao
Universidade Federal do Ceara Nao aprendi a me render
[EMAIL PROTECTED] Que caia o inimigo entao"
[EMAIL PROTECTED] Renato Russo
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets