I'm new to the Oracle Platform (having primarily used MySQL, with a little Postgres and SQL Server as well). I recently discovered the following statment
DESC TABLE_NAME;
will only work in the SQL*Plus tool I use to test my queries. It will NOT work when I use PHP's standard functions to connect to the oracle database. I need to use something like
SELECT * FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 'TABLE_NAME'
instead.
From what I understand, this is because the "DESC" statment is an add-on in the SQL*Plus application.
My questions are
- Is my understanding correct, or is there something more subtle going on?
- What other special additions are there to SQL*Plus?
- Is there a way to turn off these special additions while I'm coming up to speed on Oracle?
- Any other general advice for an Oracle newb from vetrans of the platform is appreciated.