查询datetime格式的日期

select * from t_policy_prem where due_time > cast('2012-10-28 00:00:00' as datetime)

1

SELECT id FROM table WHERE add_user = 'xxx' and add_time > cast('2012-11-11 00:00:00' as datetime)

猜你喜欢

转载自blog.csdn.net/wjg1314521/article/details/96338449
今日推荐