11

Can some body tell me the difference between timestamp(0) and timestamp(6) in Teradata

user1172117
  • 169
  • 2
  • 3
  • 6

2 Answers2

18

timestamp(p), where p is the number of digits in the fractional part of second (microseconds), 0 ⇐ p ⇐ 6. With 0 there are no fractions of the second.

Ben Voigt
  • 277,958
  • 43
  • 419
  • 720
Cheery
  • 16,063
  • 42
  • 57
4

The number (0 or 6) is the number of digits for fractions of a second that you want to store. 6 is the maximum.

Ben Voigt
  • 277,958
  • 43
  • 419
  • 720
Foggzie
  • 9,691
  • 1
  • 31
  • 48