what is the different between timestamp data type without parameter and with parameter 0:
timestamp VS timestamp(0)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The number in parentheses specifies the precision of fractional seconds to be stored. So,
(0)would mean don’t store any fraction of a second, and use only whole seconds. The default value if unspecified is 6 digits after the decimal separator.So an unspecified value would store a date like:
And specifying
(0)stores only:See Oracle documentation on data types.