定义2个String类型的变量mydate1,mydate2Select * from user where user_date between " + "'" + mydate1 "'" + "'" + "and" + "'" + "'" + mydate2 + "'" 试试看