Is "a" a keyword in oracle [message #314852] |
Fri, 18 April 2008 01:06 |
ssunda6
Messages: 28 Registered: June 2007
|
Junior Member |
|
|
Hi,
In sql developer, whenever we type, the keywords automatically get highlighted. I was trying to alias a table name with "a" and this letter got highlighted along with the other keywords like select, from etc.
Is "a" also a keyword or some reserved word in oracle?
Please let me know.
Regards,
ssunda.
|
|
|
|
Re: Is "a" a keyword in oracle [message #314895 is a reply to message #314852] |
Fri, 18 April 2008 03:48 |
ssunda6
Messages: 28 Registered: June 2007
|
Junior Member |
|
|
Thanks.
Yes..even i have used "a" as alias name to tables several times and it worked properly.
The actual problem is I ran a sql
select b.check from firstTable a, Secondtable b where a.check = b.check;
and this returned 10 rows.
But I try to fetch some other column using the following query,
select b.different from firstTable a, Secondtable b where a.check = b.check;
It is returning 0 rows.
Not able to figure out why this is happening. The only difference between 'check' and 'difference' columns is that the latter is a primary key.
(Just was thinking can 'a' keyword give any problem.)
Thanks,
ssunda.
|
|
|
|
|
|
|
|
|
|
|
Re: Is "a" a keyword in oracle [message #315007 is a reply to message #314940] |
Fri, 18 April 2008 10:10 |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
ttparavindh wrote on Fri, 18 April 2008 13:02 | Hi,
better can you check your user privilege,
SQL> select * from session_privs;
Regards,
Aravindh
|
Even if you would query the correct privs view, it would only confirm what you already know: you don't have privs on the reserved_words view
|
|
|