Create date from day, month, year fields in MySQL

后端 未结 6 984
予麋鹿
予麋鹿 2020-12-05 22:25

I am currently developing an application that displays documents and allows the members to search for these documents by a number of different parameters, one of them being

6条回答
  •  情深已故
    2020-12-05 23:02

    Try to use CONCAT() and make it one field and compare .

    Am not sure you can compare it as date after concatenation.

    You can compare as integer.

    concatinate year month day and make an integer like this 20101017 and compare.

    Hopefully :)

提交回复
热议问题