otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
 Follow New Posts:Twitter
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTM Wiki

OTM SIG
OTM Wiki
MavenWire


Database Administration Database installation, creation, administration and related topics.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old December 29th, 2009, 15:26
Junior Member
 
Join Date: Oct 2009
Posts: 4
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
devrishitrehan is on a distinguished road
Lightbulb With clause not supported in OTM Sql Servlet

Hi,

I am trying to fire a query from SQL Servlet using WITH Clause

WITH sg as
(select * from shipment)
select count(*) from sg

It is showing

Confirmation
The result of the operation is 1.

But it is not showing the result of the query.
I have tried to use spreadsheet output option but getting same results.

Please inform how can I see the output.

Thanks in advnace.

Dev

tredev@gmail.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old December 29th, 2009, 18:38
Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 83
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 4
Thanked 15 Times in 12 Posts
Rep Power: 3
cunninghamg is on a distinguished road
Send a message via AIM to cunninghamg Send a message via MSN to cunninghamg Send a message via Skype™ to cunninghamg
Re: With clause not supported in OTM Sql Servlet

Dev
I'm not sure what sql you're used to but thats not Oracle sql.

The statement
select count(*) from shipment

will get you the result you require

Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old December 30th, 2009, 09:26
Junior Member
 
Join Date: Oct 2009
Posts: 4
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
devrishitrehan is on a distinguished road
Re: With clause not supported in OTM Sql Servlet

Thanks Gary,
I have shown here an example only using WITH clause.
Same sql is giving me output in SQL DEVELOPER,Oracle Sql Plus and other interfaces.

So wanted to know the way to display results from OTM Sql servlet as it is displaying confirmation message only.

Many Many Thanks,
Dev
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Servlet code for internal RateInquiry vincent_van Development 2 August 30th, 2009 17:13
Is Oracle 10.2.0.4 Supported for OTM 5.5 Joe Patton Database Administration 2 May 18th, 2009 21:49
Disabling an OTM Servlet JayVal Integration and Data Mapping 3 March 2nd, 2009 23:24
Exporting a List Of Reports from Reports Servlet cspadola Reports / BI / FTI and Other Analytics 2 July 4th, 2008 06:46
Unlock Locked Objects in Objects Lock Servlet cspadola SysAdmin and Management 2 May 20th, 2008 01:58



All times are GMT. The time now is 19:30.
Copyright © 2006-2009, Open Book Solutions LLC. All rights reserved.


Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40