How to convert csv date format to into mysql db

后端 未结 3 701
遇见更好的自我
遇见更好的自我 2020-12-19 15:05

At csv file, the date field is in such format:

2/9/2010 7:32
3/31/2011 21:20

I am using php + mysql for development.

I need to read

3条回答
  •  有刺的猬
    2020-12-19 15:40

    I had the same problem (with DATE) and another solution, is to use the native mysql format YYYYMMDD ie 20120209. I haven't tried with DATETIME but I guess YYYYMMDDhhmmss will work.

提交回复
热议问题