Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JDBC and Relational Databases
Select multiple tables using single resultset - SQLException: ORA-00933: SQL command not properly en
Albert Hopkins
Greenhorn
Posts: 21
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi...
I wrote
ResultSet rs25 = stmt.executeQuery("SELECT count(BLESS_SEVERITY) as sbmseverity3 from BLESS where BLESS_SEVERITY=3 AND bless_orno like '%_QSC_%'" + "SELECT count(BLESS_SEVERITY) as no2 from bless"); rs25.next(); out.println("<p>Test with harstate (SEV1) = "+ rs25.getInt("sbmseverity3") + "</p>"); out.println("<p>Test with harstate (SEV1) = "+ rs25.getInt("no2") + "</p>");
But, I got SQLException: ORA-00933: SQL command not properly ended message.
What I did wrong?? please
Swastik Dey
Bartender
Posts: 2270
20
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
your sql evaluates to this
SELECT count(BLESS_SEVERITY) as sbmseverity3 from BLESS where BLESS_SEVERITY=3
AND bless_orno like '%_QSC_%' SELECT count(BLESS_SEVERITY) as no2 from bless);
and the above does not seem to be a valid sql.
Swastik
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Please take the time to choose the correct forum for your posts. This forum is for questions on
JSP
.
For more information, please
read this
.
This post has been moved to a more appropriate forum.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
delete sql
how to fetch data from resultset containing result of two queries
Many ResultSet. How to do layout???
Right Outer Join in Oracle
iBatis and Parameter Map
More...