sql 日期类型可以使用大于、小于号直接进行比较运算

  • Post author:
  • Post category:其他


select * from emp where hiredate > ‘1982-1-1’;  — mysql

select * from emp where hiredate > to_date(‘1982-1-1’, ‘yyyy-mm-dd’); — oracle

转载于:https://www.cnblogs.com/Mike_Chang/p/9311750.html