Compare mysql Date type

Compare how mysql Date type, like you can do, the BETWEEN okay?

I've got a customer table, which has a publish_date   is Date type of data:

 

1, first try like how to use:

Date visible types of data, or you can use String (varchar) type of comparison , the premise is to increase%

2, then between it?

 The visible between xxx and xxx string also can be screened for the data type Date, so that when the java mysql operation time is very convenient.

 over

Guess you like

Origin blog.csdn.net/qq_38190111/article/details/89522054