I'd like to know if SET FMTONLY ON
can be used within Oracle queries. When I'm using like this:
SET FMTONLY ON select * from department
I'm getting a message as such:
Line 1: SQLPLUS Command Skipped: SET FMTONLY ON select * from department
I'm looking for a statement in Oracle that
that returns only metadata to the client to test the format of the response without actually running the query.
EDIT
Thanks.... I want something generic for all types of queries, if the query contains any 'order by' then we cannot add this. If it is an insert query it should just validate the query, now I'm doing a roll back to just validate the query (and then execute it at run time) SET FMTONLY helps me achieve it in SQL, something similar in Oracle????.
And "CREATE TABLE FormatTest AS (SELECT ...) and then do a DESCRIBE FormatTest." I didn't get this one :(
Any help is appreciated.