Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to insert current date in row's column

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:

An image clarifying the question

like image 476
SOReader Avatar asked Oct 06 '22 02:10

SOReader


1 Answers

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.
like image 176
Hiten004 Avatar answered Oct 13 '22 12:10

Hiten004