Re: toad and double-quoting column name



Ken,

The table will have been created in double quotes as "table_a". Oracle
always looks for uppercase as will toad. Try select table_name from
aal_tables to show the difference - all other tables should be in
uppercase. I've never seen a good reason for doing this but that
doesn't stop people doing it.

ken quirici <ken.quirici@xxxxxxxxxx> wrote in
news:1189863591.875925.212320@xxxxxxxxxxxxxxxxxxxxxxxxxxx:

Hi,

I had an issue at work which has been bugging me since yesterday, so I
thought I might get some help before my weekend gets ruined.

I was in TOAD logged in to schema_1 which has privileges to read
schema_2
in the same database.

I tried

select count(*) from schema2.table_a;

and got an "unknown table" response from Oracle.

My dba suggested

select count(*) from schema2."table_a"

and it worked.

I didn't get a chance to ask him why, so my question is:

what is the nature of this function of double quotes in I assume
Oracle (rather than TOAD) functionality? In other words, does
Oracle have a rule like:

to access a table in a schema to which the schema you're in
has read access, enclose it's name in your sql statement in
doublequotes

I checked the master index of the Oracle 9i documents and found
only two refs to the doublequote, neither of which seemed relevant.

Thanks much for any ray of light.

Ken Quirici


.



Relevant Pages

  • Re: Oracle TOAD: Dislaying Ref Cursor in DataGrid?
    ... How do I use TOAD to display the result set from a ... In Microsoft SQL Server, this is effortless. ... Why is something so simple as executing a stored procedure that returns ... I have TOAD 8.6.1.0 for Oracle. ...
    (comp.databases.oracle.tools)
  • Re: Alternativen zu SQL*Plus
    ... ich habe lange beruflich mit Toad for Oracle gearbeitet (DBA und DB- ... Alternativen. ... Quest SQL Navigator oder SQL Developer von Oracle ...
    (de.comp.datenbanken.misc)
  • Re: help with TOAD for Oracle
    ... i've a small problem with Toad for Oracle, the tool i use to connect to my Database: ... Toad lost connection after about 40 minutes of non-utilization. ... Hopefully your DBA intentionally set a time-out in your profile as you ...
    (comp.databases.oracle.tools)
  • Re: Oracle hangs on select statement on certain computers
    ... they work in SQL Plus (which I'm told DOESN'T use the oracle ... API) and TOAD 8.6.0.38. ... sqlnet fragmenting packets because of a mismatch of Session Data ... from the affected clients and observe the differences. ...
    (comp.databases.oracle.misc)
  • Re: Export data from oracle in fixed length ascii using toad
    ... >I need to export data from oracle tables in fixed length ascii format. ... If this is a TOAD question, then why not ask on the TOAD fora? ... When asking database related questions, ... some clues, like operating system, version of db being used and DDL. ...
    (comp.databases.oracle.tools)