1

I'm running Oracle 11G. Assume I have table named TEST_TABLE. I can see it when run :

SQL> SELECT TABLE_NAME FROM ALL_TABLES WHERE TABLE_NAME='TEST_TABLE';

TABLE_NAME
------------------------------
TEST_TABLE

But when I try to get table content I get an error:

SQL>  SELECT * FROM table (TEST_TABLE);
SELECT * FROM table (TEST_TABLE)
                  *
ERROR at line 1:
ORA-00904: "TEST_TABLE": invalid identifier

Any help will be greatly appreciated !

1
  • 2
    SELECT * FROM TEST_TABLE; Commented Mar 15, 2013 at 12:07

1 Answer 1

2
SELECT * FROM table (TEST_TABLE);

That is the syntax for using a table function. Quite an advanced topic, not what you are looking for.

To access a table, simply do

SELECT * FROM TEST_TABLE; 
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a lot ! Now everything fine !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.