Results 1 to 3 of 3

Thread: equivalent MySQl to dateInsert SMALLDATETIME NULL DEFAULT getdate()

  1. #1
    Join Date
    Apr 2006
    Posts
    178

    equivalent MySQl to dateInsert SMALLDATETIME NULL DEFAULT getdate()

    I am looking for the equivalent of MS SQL

    dateInsert SMALLDATETIME NULL DEFAULT getdate()

    for mySQl 5

    i am trying

    dateInsert DATETIME NULL DEFAULT NOW()

    but it doesnt work

    thank you for helping

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Did you read MySql manual?

  3. #3
    Join Date
    Apr 2006
    Posts
    178
    the manual is very long to read, the forums are helpfull for a special problem

    dateInsert TIMESTAMP

    will update every time the row is changed, it is not what i want , i want to store the INSERT date once for each row
    Last edited by anselme; 12-24-2007 at 01:42 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •