How to insert current date in row's column

笑着哭i 提交于 2019-12-23 10:54:15

问题


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:


回答1:


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

  • Create a default GetDate() on the modificationddate column on your table.
  • Create a update trigger that update modificationddate column when data changes in the row.


来源:https://stackoverflow.com/questions/14780303/how-to-insert-current-date-in-rows-column

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!