Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
PL SQL Interview Questions
→
PL/SQL Advanced Interview Questions in PL SQL Interview Questions
→
Why is SYSDATE and USER keywords used?
1.
Why is SYSDATE and USER keywords used?
Answer»
SYSDATE:
This keyword returns the
CURRENT
time and date on the local database server.
The syntax is SYSDATE.
In order to
EXTRACT
part of the date, we
USE
the TO_CHAR function on SYSDATE and specify the format we need.
Usage:
SELECT SYSDATE FROM dual;
SELECT
ID
, TO_CHAR(SYSDATE, 'yyyy/mm/dd') from InterviewBitEmployeeTable where customer_id < 200;
USER
:
This keyword returns the user id of the current session.
Usage:
SELECT USER FROM dual;
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
Differentiate between the cursors declared in procedures and the cursors declared in the package specifications.
What are the virtual tables available during the execution of the database trigger?
What is the use of SYS.ALL_DEPENDENCIES?
What is the difference between ROLLBACK and ROLLBACK TO statements in PL/SQL?
What are the various functions available for manipulating the character data?
What is the importance of %TYPE and %ROWTYPE data types in PL/SQL?
Differentiate between SQL and PL/SQL.
Differentiate between implicit cursor and explicit cursor.
Why is SYSDATE and USER keywords used?
Can you explain the PL/SQL execution architecture?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies