timestamp and datetime

后端 未结 3 744
孤街浪徒
孤街浪徒 2021-01-18 08:29

i have a table with two columns first column is a (currentdate)timestamp and the other one is a (dateReturn)datetime column.i i need to get the difference between currentdat

3条回答
  •  忘掉有多难
    2021-01-18 08:54

    The timestamp data type in sql server does not store a date or time. It is more of a version maintaining column which is updated every time the row is updated. So you should reconsider the data type of this column

提交回复
热议问题