系统时间和时间字段的相减

<select id="getJhList" resultType="string">
		select t.jh from jcsxx t where ceil(sysdate- to_date(substr(t.ssgxsj,
		0,19),'yyyy/mm/dd hh24:mi:ss'))  <![CDATA[<]]>
		3
	</select>

这个语句的意思是查询系统时间减去ssgxsj小于3的井号

posted @ 2019-12-19 18:04  求知若渴的蜗牛  阅读(224)  评论(0)    收藏  举报