When I give the below command, the system is giving me an error. Can you please tell me the syntax?
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
Here is what I did:
SQL> select timestamp from dual; select timestamp from dual * ERROR at line 1: ORA-00904: invalid column name
Your SQL statement is trying to select the TIMESTAMP column from the DUAL table. This table does not contain that column therefore an error is thrown. If you want to see the current time, issue the following query:
SELECT sysdate FROM dual;
If you need this information returned in the TIMESTAMP datatype, you will have to use a function to convert the data:
SELECT to_timestamp(sysdate) FROM dual;
Dig Deeper on Using Oracle PL-SQL
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.