informix
fly一样的感觉
乐观开朗
展开
-
informix查询当前系统时间在开始时间和结束时间之间的数据
查询当前系统时间在开始时间和结束时间之间的数据:select fieldfrom [表名称]where is_show = 0and show_start_date <= TO_CHAR(current, '%Y-%m-%d %H:%M:%S')and show_end_date >= TO_CHAR(current, '%Y-%m-%d %H:%M:%S')order by show_end_date...原创 2021-01-29 14:30:00 · 785 阅读 · 0 评论 -
informix常用时间运算和操作方法
本文转载于http://blog.itpub.net/70612/viewspace-1027846/informix数据库中的时间运算select first 1 today,current,current -1 units year,current -1 units day,current -1 units hour,current -1 units minute,current -1 units second from systablesselect first 1 extend(curren原创 2021-01-22 16:45:49 · 3318 阅读 · 1 评论 -
【informix】informix 日期字段
informix 获取当前时间,时间格式-- 默认 YYYY - MM - DDselect today from dual;-- 格式 YYYY - MM - DD HH:mm:ss:000select current from dual;-- 格式 YYYY/MM/DDselect to_char(current,'%Y/%m/%d') from dual;-- 格式 HHmmssselect to_char(current, '%H%M%S') from dual;...原创 2020-08-28 21:19:34 · 2673 阅读 · 0 评论