From the course: Oracle Database 12c: Basic SQL
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Using SYSTIMESTAMP - Oracle Database Tutorial
From the course: Oracle Database 12c: Basic SQL
Using SYSTIMESTAMP
- [Instructor] In addition to Oracle's sysdate function, which allows us to retrieve the current date and time, as we saw in our previous video, Oracle also provides a systimestamp function, which allows us to view the current timestamp in the database. Systimestamp provides much higher granularity or precision when compared to just sysdate. Let's see it in action. We'll type select systimestamp from dual. Running this query will show us the current timestamp of the Oracle database. Running this query again will provide us with an updated value. Note the high level of precision or granularity, of the exact timestamp provided by this function. Let's compare it to sysdate. So I'll type comma to char sysdate comma quote and the formatting string, DD, MM and a four digit year format, followed by the time format. Running a query will show us a comparison between the value generated by systimestamp and the value generated by sysdate. Again, note the increased precision and granularity of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Introduction to functions1m 39s
-
(Locked)
Using SUBSTRING, LENGTH, and CONCAT2m 50s
-
(Locked)
Using LENGTH1m 4s
-
(Locked)
Using CONCAT4m 48s
-
(Locked)
Using LOWER and UPPER2m 44s
-
(Locked)
Using INSTR4m 32s
-
(Locked)
Using RPAD and LPAD3m 31s
-
(Locked)
Using TO_CHAR to convert numbers1m 34s
-
(Locked)
Using TO_CHAR to format DATE values2m 59s
-
(Locked)
Using TO_CHAR to filter DATE values1m 57s
-
(Locked)
The special Oracle DUAL table1m 18s
-
(Locked)
Using ROUND1m 15s
-
(Locked)
Using TRUNC1m 36s
-
(Locked)
Using SYSDATE1m 59s
-
(Locked)
Using SYSTIMESTAMP1m 37s
-
(Locked)
Using MONTHS_BETWEEN3m 2s
-
(Locked)
Using ADD_MONTHS1m 17s
-
-
-
-
-
-