Running Multiple SQL in a Single Worksheet: Can I Selectively Run a Single SQL and Append Output?
In any release of SD, if I have a single worksheet containing 10 sqls. Is it possible to place the cursor on any of the sql and run only that sql, yet, append its output to existing output window. I can then select another sql and execute it and keep appending output. In other words, do not clear existing output or start a new output tab.
As it exists today (in any release), I can either 'run script' which does append, but it executes all the sql (non-selective). Alternately, I can 'run statement' to selectively run a single sql, but it will clear the output window (or if pinned), start a new one. None of this is what I want.
Thank you.
Select the query you want to run. Execute it via F5. Then highlight the next query and repeat.
The output will append to the Script Output panel.
There's no way to get 2 queries to share a grid, unless you were to run them as a single query a la UNION.
Similar Messages
-
How can I select from drop-down list and jumping to selected subform?
I using LC Designer ES2 vers 9. Developing XDP. How can I Select from a drop-down list the appropriate selected subform (jumping to the selected subform on the page)?
drop-down list...A (jump to subform1)
B (jump to subform2)
C (jump to subform3)
subform1
subform2
subform3
....end of formHi,
you cannot set focus on a subform but on a field, as only interactive objects can be focussed.
From a dropdowns exit event the script will look this way:
switch (this.rawValue) {
case "A" : xfa.host.setFocus("form1.page2.field1"); break;
case "B" : xfa.host.setFocus("form1.page2.field1"); break; -
Can some selection conditions as PL/SQL procedure input parameters
Dear All,
I need to write a PL/SQL procedure so as to compute the different query only by changing the input parameters. But those input parameters need to be like a PL/SQL table selection conditions. Like:
one of the query I need two conditions:
customers.zip = 60606
customers.zip = employees.zipMy procedure can compute the query like:
select customers.cno, cname, employees.eno, ename
from customers, orders, employees
where customers.cno = orders.cno and
employees.eno = orders.eno and
C;
where C is the conjunction of the conditions in the input parameter.
Please help and thanks in advance!Well, it's easy enough to do what you want....
SQL> conn scott/tiger
Connected.
SQL> CREATE OR REPLACE FUNCTION flexi_q (pn_deptno IN NUMBER, pv_string IN VARCHAR2 := NULL)
2 RETURN sys_refcursor AS
3 return_value sys_refcursor;
4 BEGIN
5 IF pv_string IS NULL THEN
6 OPEN return_value FOR SELECT * FROM emp WHERE deptno = pn_deptno;
7 ELSE
8 OPEN return_value FOR 'SELECT * FROM emp WHERE deptno = :1 AND '
9 ||pv_string USING pn_deptno;
10 END IF;
11 RETURN return_value;
12 END;
13 /
Function created.
SQL> var rc refcursor
SQL> exec :rc := flexi_q(30)
PL/SQL procedure successfully completed.
SQL> print rc
EMPNO ENAME JOB MGR HIREDATE SAL COMM
DEPTNO
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300
30
7698 BLAKE MANAGER 7839 01-MAY-81 2850
30
7900 JAMES CLERK 7698 03-DEC-81 950
30
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400
30
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0
30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500
30
6 rows selected.
SQL> exec :rc := flexi_q(30, 'SAL > 1400')
PL/SQL procedure successfully completed.
SQL> print rc
EMPNO ENAME JOB MGR HIREDATE SAL COMM
DEPTNO
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300
30
7698 BLAKE MANAGER 7839 01-MAY-81 2850
30
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0
30
SQL> The real question is: do you really want to do this? Fundamentally you are handing over control of your app to any nimrod who thinks they know how to write SQL. It's just about allowable for them to add simple restrictions but they could add in anything - correlated sub-queries, extravagant sorts, etc. Even if they don't deliberately exploit this hole you still have a fundamentally untunable part of your app.
It would be much better to have some additional parameters that allows the users to choose from several off-the-peg queries. If you have a user demanding the ability to write "any report I need" I recommend talking to them. The chances are they simply have a pet query, probably embodied in an Excel spreadsheet, they run once every month. Give them a view to meet that need and they'll be happy.
Cheers, APC -
Hi all,
I have set up the preview for the new Azure SQL tiers on both of the subscriptions we have for Azure. The one under my MSDN subscription to and a pay as you go subscription
The pay as you go subscription works fine but when I try to upgrade an existing Azure sql database or create a new one on my MSDN subscription it doesn't give me the option of the new tiers.
Using the new portal it says I need to sign up to the preview, but I already have and when I go to try to add a new subscription to the preview for Azure SQL it says all my active subscriptions are on the preview.
Any idea what the issue could be?
Cheers
AshHi,
Apologies for the inconvenience.
I suggest you open a Billing Support Ticket. They will be able to check this for you.
http://azure.microsoft.com/en-us/support/options/
Regards,
Mekh. -
Can u select a song in iTunes, and play through the Apple TV (1st gen)
I am trying to figure out if I can use a computer, instead of the iTunes interface, to play music though my stereo. I know you can do this with a Airport Express (but not the Extreme...#^**@#), for example, but I am trying to figure out if you can do the same with the apple TV (the old one). I would liek to be able to have my laptop anywhere and control what is p[laying on the Apple TV...
thxSimple - using the Airtunes (renamed Airplay in iTunes 10) speaker feature you'd use to play to an Express, you just enable in on AppleTV Gen 1 and then choose the AppleTv as the speaker in iTunes.
This will only work for audio of course.
The Remote app on an iPhone/iPad should also allow you to control iTunes playback to an AppleTV as another option - at least Version 1 allowed thsi I've not tried yet with Remote 2.0 but think it still does. -
I just can't figure out how to keep itunes going. It plays one song at a time and will not go on to the next. Do I need to change a setting or something?
At a guess you've somehow managed to uncheck the entire library. Select the Songs view, the CTRL+click an empty checkbox. All boxes should become checked. If you don't see the checkboxes use Edit > Preferences to enable them.
tt2 -
Can I play sounds to internal speakers and an output device?
Can I output Sounds (say from Spotify) to internal speakers and an an external device at the same time?
I found another solution in this thread http://forums.macrumors.com/showthread.php?t=695360
Again you need the rogueamoeba guys. -
Can I select which Apps to download and will the service charge reflect this choice?
I will not want to use all the Apps and I want to pay less for as I will use less.
robw007 wrote:
This seems a little unfair - are there any plans to make the scheme more
flexible?
Not that I'm aware of.
Adobe would probably says that the Cloud is very flexible now, the apps are all there if you ever do want to use them (they hope you'll try them all eventually), and the entire Cloud costs each member less than the price of a cup of coffee per day.
I cannot see them introducing per-app bundle pricing to the Cloud (other than the current single app membership). The price differentials between each bundle would hardly be worth it.
You could always float the idea in the Cloud feedback forums to gauge interest among other Adobe users
http://forums.adobe.com/community/creative_cloud?view=idea
Also, feel free to post a feature request to Adobe (but don't expect a personal reply)
https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
I think the Cloud is here to stay in its current form. They'll just keep selectively adding more apps and services to make it more and more appealing. -
My trackpad becomes REALLY unresponsive after I plug in a USB mouse. It seems like the cursor is broken and stuck on a permanent left click or something. I'm unable to select text or do any other sort of action that requires you to hold down the trackpad and drag. Mouse icons don't update as I scroll over different text and links. The trackpad is usually stuck in this unresponsive state until I restart my macbook which is extremely inconvenient if I have to do this after every time I use a USB mouse. Are there any fixes to this?
Melophage,
I don't leave it outside. Usually when I leave it overnight, I do so under the same conditions as when I leave it plugged in, and this morning I only left it for about an hour in my house and it did the same thing.
LowLuster,
I actually have a new hard drive I bought a while back and have been meaning to switch it out with the one that's in there now. I'll follow your instruction, then make the switch I had planned on and report back. -
Can't select items, keeps showing paths and anchor points
All of a sudden when I roll over a selection the cursor displays anchor points and paths only. Any ideas?
Perhaps you have Smart Guides turned on.
Try Cmd+U to turn them off, and see how it goes.
Jeff -
Time Machine - can't select any backups except Today and Oldest
Ever since installing Lion I've noticed that I cannot scroll through the time machine backups using the purple bar on the right as I used to be able to do in previous OSX versions. Because of this, I have not found any way to restore anything other than the oldest backup (from April 2011). I have lost all my Safari bookmarks and was hoping to restore them from Time Machine Backup, but need more recent backup than last April.
Any suggestions?
ThanksSee if this thread is fruitful:
https://discussions.apple.com/message/10394546#10394546 -
I can only select HDR Toning Shadows/Highlights and Variations when I go to Image Adjustments
I'm trying to use Hue/Saturations but its grayed out the only options i have when i go to Image>Adjustments are HDR Toning Shadows/Highlights and Variations. My layer is set to RGB. SOMEONE PLEASE HELP ME IM TRYING TO MAKE A MINECRAFT THUMBNAIL.
OK, Restarting Aperture did not help so I restarted the whole computer. And that cleared it all up.
So something must have gotten out of whack and only a restart was able to fix it.
Bo -
Running Multiple IP Multicast sessions
Hi,
am setting up multiple multicast sessions, i generated configurations for each session using a seperate stream name, IP address, port.
1) Is it possible to run multiple multicast session.
From configuration, looks like we can, but need confirmation
2) How can i test these sessions using the default player ? or any sample player
Any ideas ?
Appreciate any insight.
thanks,
Puli.1. You should be able to run multiple multicast sessions
2. You can use Strobe Media Playback - it should have multicast playback support. You can also use default player which should be present in tools/multicast/multicastplayer folder of FMS installation. -
I want to run multiple instance of tomcat on same server-very Urgent
HI all,
I want to run multiple instance of tomcat on same server. I have created CATALINA_BASE directory and i put conf,logs,temp,webapps, and work directory. I have configured server.xml in different port. I have set the environment variables too. Though it didn't workout for me. Is there anything else i have to do for that. if so, Please assist me.
I did all according to the tomcat 4.1running.txt
Thanks in advance
Ram.hi,
http://www.linuxjournal.com/article/8561
http://forum.java.sun.com/thread.jspa?threadID=515368&messageID=2458945Hit Google..
http://www.google.com/search?q=how+to++run+multiple+instance+of+tomcat+on+same+server&client=netscape-pp&rls=com.netscape:en-US -
Several times now, I've run in to a problem where I can't select clips in the project. I can click everyewhere else, I can chnage and use other tools, but I can't select a clip! I've tried dragging a box and clicking directly on the clip, but no luck. A restart fixes the issue, but it's happened many times.
Any suggestions?I forgot about the C key... I'll try that next time. I had the select tool (A) selected, so it should have worked. With a restart everything is fine now, but it's odd that it's happened several times. I also try things like switching apps, resize the window, change tools, switch projects, but nothing seems to bring it back (except a re-start.)
Maybe you are looking for
-
Problem pairing bluetooth keyboard?
I feel ridiculous posting this because it's essentially publicizing my own stupdity, but I noticed a lot of other people having the same problem I had. I had been using my aluminum bluetooth keyboard, it was working great. Then it stopped working-- I
-
Looking to get all my photos from my mac's photo stream on to my iphone's photostream.
-
hi, i get the below error when i try to shutdown tomcat 5.5.27 initially before i install tomcat and sun DS 6.3 on solaris 10,when i was trying to restart the system,i see tomcat not started so i tried to restart i get the below error #./shutdown.sh
-
Abstract Classes VS Interfaces
What is the use of an abstract class when we have interfaces?As far as i know abstract classes cannot be inherited and yes they do provide you the facility of implementing all or some of the concrete methods defined in them.Can anyone define this con
-
Please any ideas on how I got hacked
Hello, I would like to know how it could be possible I got hacked. The hackers defaced the company website with a custom html file. I do not allow FTP, or SSH, just AFP. There were no AFP logs at the time the files were "uploaded" Here are some entri