in theOracle Database, the Oracle system variable function is a commonly used function that shares the usage of the Oracle system variable function.
There are a variety of Oracle functions, one of which is the system variable function, which describes the three most common system variable functions.
Oracle System Variable functions:
1) sysdate
The function returns the current date and time. The current date and time of the Oracle server is returned.
Select Sysdate from dual;
INSERT INTO purchase values
(' Small Widget ', ' SH ', sysdate, 10);
INSERT INTO purchase values
(' Meduem wodget ', ' SH ', sysdate-15, 15);
To view all sales records for the last 30 days, use the following command:
SELECT * FROM purchase # www.jbxue.com
where purchase_date between (sysdate-30) and sysdate;
2) USER
View the user name.
Select User from Dual;
3) USERENV
View a variety of information about your user environment.
Select Userenv (' TERMINAL ') from dual;
An introduction to the above Oracle system variable functions.
Share: Oracle system variable function usage notes