I want to use oracle syntax to select only 1 row from table DUAL
. For example, I want to execute this query:
SELECT user
FROM DUAL
...and it'd have, like, 40 records. But I need only one record. ...AND, I want to make it happen without a WHERE
clause.
I need something in the table_name field such as:
SELECT FirstRow(user)
FROM DUAL
dual
? – Blatmandual
is the system table in oracle – Wadlingerdual
table does have auser
column, though. The "no where clause" constraint seems... contrived? Why the heck not? – WadlingerDUAL
. It's a bit like#define TRUE 0
in C - sure, it might work for you, but future developers will hate you. – Samualsamuelselect user from dual
? If not, please try that, and see what you get. On a standard oracle system, you'll get back the user you are executing the command with. – PlumcotDUAL
only has one row. If you have two rows in it or another table calleddual
or you meant a different table then that changes the question. – Karilynn