Example: storage format for: 1585 XXXX 10 Numbers, I want to switch to 20200101, this format of time range queries, such as field called: date, table named test
CodePudding user response:
Create a new field, for example, mydateThe UPDATE table name SET mydate=FROM_UNIXTIME (` former field name `, '% Y % m % d')