SQL> create table return (a number);
Table created.
SQL> select * from return;
no rows selected
SQL>
Main Topics
Browse All TopicsHi,
If I have a table named return how do I select from it
I tried
select * from [return];
but that didnt seem to work
thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If using 10G, the word "RETURN" is a Reserved Word, therefor, in order to be able to create a table named "return", double quotes must be placed around it, so you must qualify the name surrounding it with double when using its name:
SQL> create table "return"( col1 char);
Table created.
Elapsed: 00:00:00.00
SQL> select * from return;
select * from return
*
ERROR at line 1:
ORA-00942: table or view does not exist
Elapsed: 00:00:00.00
SQL> select * from "return";
no rows selected
Elapsed: 00:00:00.00
SQL>
Chech this link:
http://download-west.oracl
Yes, Oracle will allow you to create a table named either "return" or "RETURN" (or even "Return" or "reTurn", etc.), if you always use the double quotes when you refer to it, but since that is a reserved word, this looks to me like a recipe for trouble. I would not use a reserved word like that for a table name.
Business Accounts
Answer for Membership
by: Bigfam5Posted on 2005-02-01 at 05:21:47ID: 13192152
What version of Oracle? I'm running 9.2.0.4
Sql> create table return (id number, text varchar2(10));
Table created.
Sql> insert into return values (1,'test');
1 row created.
Sql> select * from return;
ID TEXT
--------- ----------
1 test