-3

When running

 creation_date date default (current_date),

getting error on MySQL server on Azure portal, but not on local MySQL workbench. How can we give the current date as default?

ILovePizza
  • 141
  • 1
  • 8

1 Answers1

0

You can get current time by following sql querys:

  SELECT SYSDATETIME()

https://i.imgur.com/9lp2Z6F.png

Select  SYSDATETIMEOFFSET ()

enter image description here

If you want to change to time zone you are living you can change it to local also, for further reference to change to local time refer this site.

Ryan M
  • 18,333
  • 31
  • 67
  • 74
RithwikBojja
  • 5,069
  • 2
  • 3
  • 7