icon Enroll in the OCI Weekend Batch – Don’t Miss the Free Session! ENROLL NOW
  • User AvatarKiran Dalvi
  • 07 Sep, 2023
  • 0 Comments
  • 28 Secs Read

Display time in a Date column

Display time in a Date column

Generally when we query a date column, it will display only  dates and not time. Below query enables Oracle to display both date and time for a particular session.  
alter session set nls_date_format='dd-Mon-yyyy hh:mi:sspm';

Hope it helps!

Let's Talk

Find your desired career path with us!

Let's Talk

Find your desired career path with us!