• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MySQL Date field , how to assign current date as default value ?

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post
i want to ask how i can assign current date as a default value of a filed when i create the table ?
i am using mysql.

thanks
 
karthikeyan Chockalingam
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope this helps you



You may use insert stmt like and
created_dt column is assigned the current date time ...Is it what you want?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic