Print Thread
How to pass 2 sql statement at same time..
#14304 06/03/04 05:50 PM
Joined: Dec 2003
Posts: 14
T
TMoore Offline OP
Member
OP Offline
Member
T
Joined: Dec 2003
Posts: 14
Hi

I wrote this:
select count(1) from test;
select * from test;

developer hang on ';' character. How to solve this problem? Sometimes I have long script whitch can not union select.

Re: How to pass 2 sql statement at same time..
#14305 06/03/04 07:03 PM
Joined: May 2004
Posts: 11
Duesseldorf, DE
Member
Offline
Member
Joined: May 2004
Posts: 11
Duesseldorf, DE
What you you expect as result of this both queries ?

Two different result panes ?

Why don't you use a second window for the second query ?

Re: How to pass 2 sql statement at same time..
#14306 06/03/04 08:29 PM
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Member
Offline
Member
Joined: Jul 2003
Posts: 1,140
Virginia, USA
There is an option under Tools / Preferences / SQL Window called AutoExecute Queries. Check it and when you click Execute PLSD will select the closest query and execute it.


Scott Mattes
Re: How to pass 2 sql statement at same time..
#14307 06/03/04 10:28 PM
Joined: Mar 2003
Posts: 152
Portland, Oregon, USA
A
Member
Offline
Member
A
Joined: Mar 2003
Posts: 152
Portland, Oregon, USA
The alternative is to execute from the command window, which mimicks SQL*Plus.



Arnoud.
Re: How to pass 2 sql statement at same time..
#14308 06/04/04 11:31 AM
Joined: Dec 2003
Posts: 14
T
TMoore Offline OP
Member
OP Offline
Member
T
Joined: Dec 2003
Posts: 14
>What you you expect as result of this both >queries ?
It is one of the solution. I don't what to use second program window. I have 8 queries, each has 10 - line of code.
> Auto-execute and Auto-select is good and also mark some sql and fire it.

I can write union select but it costs much more cpu time.


How to present this results, maybe it could be represents on each tab. It's great idea.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.048s Queries: 13 (0.008s) Memory: 2.5147 MB (Peak: 3.0423 MB) Data Comp: Off Server Time: 2024-05-11 21:27:02 UTC
Valid HTML 5 and Valid CSS