Home » SQL & PL/SQL » SQL & PL/SQL » How To Trunc Date In Oracle
How To Trunc Date In Oracle [message #642828] Mon, 21 September 2015 06:28 Go to next message
swti6690
Messages: 1
Registered: September 2015
Location: Louis velle
Junior Member
The TRUNC meaning can utilized to around a dateTime charge downward to a bold granularity. Since the accuracy of DATE is to the second (& no portions of seconds), there is no require to TRUNC at the entire. The Oracle/PLSQL TRUNC purpose revisits a date truncated to a detailed component of compute.



[Edit MC: link removed and you don't lose anything but save time not reaching it.]

[Updated on: Mon, 21 September 2015 07:02] by Moderator

Report message to a moderator

Re: How To Trunc Date In Oracle [message #642831 is a reply to message #642828] Mon, 21 September 2015 06:43 Go to previous messageGo to next message
pablolee
Messages: 2882
Registered: May 2007
Location: Scotland
Senior Member
Are you asking a question or trying to advertise the linked website?
Re: How To Trunc Date In Oracle [message #642832 is a reply to message #642831] Mon, 21 September 2015 06:52 Go to previous messageGo to next message
Michel Cadot
Messages: 68636
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

I vote for the second part of the question. Smile

Site which is bad:
SQL> SELECT TRUNC (TO_DATE('20-MAY-2002'), 'YYYY') FROM dual;
SELECT TRUNC (TO_DATE('20-MAY-2002'), 'YYYY') FROM dual
                      *
ERROR at line 1:
ORA-01858: a non-numeric character was found where a numeric was expected


Quote:
there is no require to TRUNC at the entire


What does that mean?

Quote:
The Oracle/PLSQL TRUNC purpose revisits a date truncated to a detailed component of compute.


And this? "a detailed component of compute"? what is this?

[Updated on: Mon, 21 September 2015 06:53]

Report message to a moderator

Re: How To Trunc Date In Oracle [message #642833 is a reply to message #642828] Mon, 21 September 2015 06:55 Go to previous messageGo to next message
Michel Cadot
Messages: 68636
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

@swti6690,

If no answer to pablolee's question within a couple of hours, spam will be assumed and the link removed.

Re: How To Trunc Date In Oracle [message #642834 is a reply to message #642833] Mon, 21 September 2015 06:58 Go to previous messageGo to next message
Littlefoot
Messages: 21807
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
That's an obvious spam (in my opinion).
Re: How To Trunc Date In Oracle [message #642835 is a reply to message #642832] Mon, 21 September 2015 06:59 Go to previous messageGo to next message
pablolee
Messages: 2882
Registered: May 2007
Location: Scotland
Senior Member
Agreed. The text was almost unintelligible.
Re: How To Trunc Date In Oracle [message #642837 is a reply to message #642835] Mon, 21 September 2015 07:16 Go to previous message
cookiemonster
Messages: 13919
Registered: September 2008
Location: Rainy Manchester
Senior Member
Text looks like it's been run through a few languages in google translate before settling on English.
Previous Topic: How to select last rate of Product
Next Topic: Simple procedure
Goto Forum:
  


Current Time: Tue Apr 16 10:55:48 CDT 2024