mysql比较时间大小unix_timestamp

使用unix_timestamp方法进行比较,将字符型的时间,转成unix时间戳

 string downloadSql = string.Format("select * from t_patient where unix_timestamp(TimeStamp) > unix_timestamp('{0}')", dateTime);

猜你喜欢

转载自blog.csdn.net/xionglifei2014/article/details/84861283