Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Sql Server Getdate() Does Not Return Default

forums › forums › SQLyog › Sync tools, Migration, Scheduled Backup and Notifications › Sql Server Getdate() Does Not Return Default

  • This topic is empty.
Viewing 6 reply threads
  • Author
    Posts
    • #19205
      Ritesh
      Member

      Can somebody tell me which language is that?

      I used Google Language tool to convert the text from Spanish to English but it did not return any human understandable result (atleast to me).

    • #19206
      peterlaursen
      Participant

      Undoubtedly it is Portuguese (as I wrote 😀 )

      These accents tell

      Quote:
      função
    • #19207
      Ritesh
      Member

      Google language tool says:

      “In the SQL Server I use the function getdate() in “defalt value” to return the current date and to define it as value standard of a field dates. How to make in the MySQL/SQLYog?”

      I think he requires the MySQL function: date()

    • #19208
      Ritesh
      Member

      As an addition, I would like to say that this option is not available in Create/Alter Table dialog of SQLyog. Currently, we dont support inbuilt MySQL functions for default value.

      Maybe, I should put it in the TO-DO list of SQLyog <_<

    • #19209
      peterlaursen
      Participant

      There is no System Variable to use instead ?

      default CURRENT_DATE or something like it ?

    • #19210
      peterlaursen
      Participant

      I believe the solution with MySQL is to use a TIMESTAMP variable with “default CURRENT_TIMESTAMP” with the column definition.

      The date is then created from this variable with the date() function. like:

      select date(column_name) from table_name;

    • #19211
      peterlaursen
      Participant

      now Sergio asks:

      Quote:
      Tive que reinstalar o software porém perdi a chave de liberação como faço para conseguir uma nova
Viewing 6 reply threads
  • You must be logged in to reply to this topic.