Truncate time part from Datetime column or literal in Oracle SQL


I have shown how to truncate the time part from a datetime column value in SQL Server T-SQL in one of my previous posts here –

https://pivotronics.wordpress.com/2012/12/19/comparing-datetime-column-with-a-date-literal-in-t-sql/

Here is the same (how to truncate the time part from a datetime column value) in Oracle SQL:

TRUNC(datetime_column)

or

TRUNC(datetime_expression)

very straight forward…!! isn’t it.. ? 🙂

Your valuable comments are highly honoured..!!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Up ↑