The DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
CodePudding user response:
Without this can only write themselves into the update timeCodePudding user response:
As if canhttps://stackoverflow.com/questions/37782251/auto-populate-date-in-mongodb-on-insert
CodePudding user response:
Need their new ObjectId (), then the inside of the extraction time, specific see https://blog.csdn.net/ThisWhoIam/article/details/86747450CodePudding user response:
CurrentDate () or currentTimestamp ()