forums › forums › SQLyog › Sync tools, Migration, Scheduled Backup and Notifications › Sql Server Getdate() Does Not Return Default
- This topic is empty.
-
AuthorPosts
-
-
September 15, 2005 at 7:25 pm #9229peterlaursenParticipant
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
-
September 16, 2005 at 4:26 am #19205RiteshMember
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).
-
September 16, 2005 at 4:29 am #19206peterlaursenParticipant
Undoubtedly it is Portuguese (as I wrote 😀 )
These accents tell
Quote:função -
September 16, 2005 at 6:57 am #19207RiteshMember
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()
-
September 16, 2005 at 6:59 am #19208RiteshMember
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 <_<
-
September 16, 2005 at 8:38 am #19209peterlaursenParticipant
There is no System Variable to use instead ?
default CURRENT_DATE or something like it ?
-
September 17, 2005 at 5:19 am #19210peterlaursenParticipant
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;
-
September 22, 2005 at 3:46 pm #19211peterlaursenParticipant
now Sergio asks:
Quote:Tive que reinstalar o software porém perdi a chave de liberação como faço para conseguir uma nova
-
-
AuthorPosts
- You must be logged in to reply to this topic.