如何在行的列中插入当前日期 [英] How to insert current date in row's column

查看:82
本文介绍了如何在行的列中插入当前日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在MS SqlServer Mgm Studio的编辑数据视图的行列中插入当前日期?我想获得 GetDate()函数调用的等效值。

How do I insert current date into a row's column in the "Edit data" view in MS SqlServer Mgm Studio? I want to get the equivalent value of GetDate() function call.

这里是一张图片,希望可以阐明问题:

Here's an image which I hope clarifies the question:

推荐答案

您不能键入function,所以请键入日期或以下解决方案之一

you can not type function so type the date or one of following solution


  • 在表的Modifyddate列上创建默认的 GetDate()

  • 创建更新当行中的数据更改时,触发更新updateddate列。

这篇关于如何在行的列中插入当前日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆