Hi
You can use a String class to store the SQL sentence
for example:
String sql = "SELECT ...... FROM ......";
and
ResultSet rs = stmt.executeQuery(sql);
or
ResultSet rs = stmt.executeQuery("Select ........"+
"......... from
....."+
"..... where .....");
----- Original Message -----
From: Dan Lopez <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 17, 2000 10:52 AM
Subject: Re: Concatenate
> Code:
>
> ResultSet myResultSet = stmt.executeQuery(Select <very
> long>....from <very long>.....);
>
> Would like to concatenate at end of line to make code
> look nicer. Thanks for the help.
>
> -D
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf! It's FREE.
> http://im.yahoo.com/
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> 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
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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