Home » SQL & PL/SQL » Client Tools » readonly TOAD...and a lacy guy
readonly TOAD...and a lacy guy [message #426855] Tue, 20 October 2009 01:56 Go to next message
thedutchguy
Messages: 13
Registered: October 2009
Junior Member
Hi everybody,

I've got a question about TOAD. We've got the readonly version on our production system and I'm a very lacy guy.

So when I have 3 queries which al generate a different output list but with the same keys, I only want to type in the keys ones and not 5 times.

Example:

select *
from tableA
where colom1 = 245

select *
from tableB
where colom1 = 245

select *
from tableC
where colom1 = 245

I tried with "accept" and &-symbol but then I got the notification "This version of TOAD provides READONLY access'!" Is this possible without changing TOAD

Thanks in advantage,
Re: readonly TOAD...and a lacy guy [message #426857 is a reply to message #426855] Tue, 20 October 2009 02:00 Go to previous messageGo to next message
Michel Cadot
Messages: 29436
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Yes, use SQL*PLus. Wink

Regards
Michel
Re: readonly TOAD...and a lacy guy [message #426885 is a reply to message #426855] Tue, 20 October 2009 03:48 Go to previous messageGo to next message
JRowbottom
Messages: 5371
Registered: June 2006
Location: Sunny North Yorkshire, ho...
Senior Member
What do you get with bind variables:
select *
from tableA
where colom1 = :key_value
Re: readonly TOAD...and a lacy guy [message #426890 is a reply to message #426855] Tue, 20 October 2009 04:20 Go to previous messageGo to next message
Littlefoot
Messages: 9248
Registered: June 2005
Location: Croatia, Europe
Senior Member
I don't have read only TOAD version, but - as you are selecting all (*) from these tables, perhaps you could set table filter in Schema Browser.

Or, create a view as union of these 3 tables, mark records that belong to a certain table and then select from this view. Something like
CREATE VIEW my_view AS
SELECT 'tab A' id, ta.* FROM table_a a
UNION ALL
SELECT 'tab B' id, tb.* FROM table_b b;

SELECT * FROM my_view WHERE id = 'tab A' AND colom1 = 245;
Now you could even parametrize ID and select from whichever table you want. Sort of.

Though, that's probably not a very good idea. (By the way, what is the purpose of using read only version? So that you wouldn't mess something up? If you *know* what you are doing, install free SQL Developer, available at Oracle Technology Network - it will allow you to write your own queries, no matter how they look like.

Or, as already suggested, use SQL*Plus.
Re: readonly TOAD...and a lacy guy [message #427393 is a reply to message #426855] Thu, 22 October 2009 06:27 Go to previous message
thedutchguy
Messages: 13
Registered: October 2009
Junior Member
Oke thanks,


I will try your suggestions...thanks Smile


Previous Topic:Worksheet (Oracle 8/9i database tool)
Next Topic:Explain plan Using toad and SQL Developer
Goto Forum:
  


Current Time: Tue Dec 1 12:47:52 CST 2009

Total time taken to generate the page: 0.35994 seconds
.:: Forum Home :: Blogger Home :: Wiki Home :: Contact :: Privacy ::.