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 7 reply threads
  • Author
    Posts
    • #9229
      peterlaursen
      Participant

      Sergio has asked this question in the FAQ's

      “No SQL Server utilizo a função getdate() no “defalt value” para retornar a data atual e definí-la como valor padrão de um campo data. Como fazer no MySQL/SQLYog?”

      I understand so much that it is a problem “that SQL server getdate() does not return default”. Who would translate exactly? And how does this relate to SQLyog.

      I have sent a mail to Sergio with a link to this Forum entry

    • #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 7 reply threads
  • You must be logged in to reply to this topic.