The TIMESTAMP data type is an extension of the DATE data type. It stores the year, month, and day of the DATE data type, plus hour, minute, and second values. This data type is useful for storing precise time values and for collecting and evaluating date information across geographic regions. Specify the TIMESTAMP data type as follows:TIMESTAMP [(fractional_seconds_precision)]where fractional_seconds_precision optionally specifies the number of digits Oracle stores in the fractional part of the SECOND datetime field. When you create a column of this data type, the value can be a number in the range 0 to 9. The default is 6.
4 个回复
悟 - 取是能力,舍是境界 2016-08-17 回答
赞同来自: 哈尔 、郑大鹏
蓝心 2016-08-17 回答
赞同来自: 哈尔
如果你是的这个字段有默认值,默认的是当前系统时间戳, 那么在insert插入数据的时候,不插入这个字段,会自动插入当前系统时间,但是update更新的时候,如果你不更新这个字段,它不会自动更新成当前系统时间的,还是原来插入时候的时间。
老头子 - 专注是唯一的捷径 2016-08-19 回答
赞同来自:
timestamp作为一个数据类型的情况下,如果表中不设定默认值并不会自动维护
newlove 2016-08-19 回答
赞同来自: