就是
有怎么一条语句
select * from table1 where date1<date2 and date3>date4;
也就是我要取date1到date4期间的记录,然而我的date1,date2,date3,date4都是varchar型的数据,我该怎么办呢??
有怎么一条语句
select * from table1 where date1<date2 and date3>date4;
也就是我要取date1到date4期间的记录,然而我的date1,date2,date3,date4都是varchar型的数据,我该怎么办呢??
date1,date2,date3,date4都是varchar型的数据如:“2006-01-01”这样的字符串。
应该是把时间格式化成unix时间戳,好像是1970年开始到现在的秒数```这样就是int类型 比较很简单拉````