|
|
|
@ -20,16 +20,23 @@ SELECT FOUND_ROWS() TOT_CNT</select>
|
|
|
|
|
|
|
|
|
|
<sql id="orderBy"><if test="fetchSize == null or fetchSize < 1"><include refid="utility.sortBy" /></if></sql>
|
|
|
|
|
|
|
|
|
|
<sql id="now">DATE_FORMAT(CURRENT_TIMESTAMP(), '%Y%m%d%H%i%s')</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="selectNow">SELECT<include refid="utility.now" />NOW</sql>
|
|
|
|
|
<!-- 마리아 DB -->
|
|
|
|
|
<sql id="now">DATE_FORMAT(CURRENT_TIMESTAMP, '%Y%m%d%H%i%s')</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="today">DATE_FORMAT(CURRENT_DATE, '%Y%m%d')</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="selectToday">SELECT<include refid="utility.today" />TODAY</sql>
|
|
|
|
|
<!-- 오라클
|
|
|
|
|
<sql id="now">TO_CHAR(CURRENT_TIMESTAMP, 'YYYYMMDDHH24MISS')</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="today">TO_CHAR(CURRENT_DATE, 'YYYYMMDD')</sql>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<sql id="selectNow">SELECT<include refid="utility.now" />NOW FROM DUAL</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="selectToday">SELECT<include refid="utility.today" />TODAY FROM DUAL</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="thisDay">IFNULL(#{thisDay},<include refid="utility.today" />)</sql>
|
|
|
|
|
<sql id="thisDay">NVL(#{thisDay},<include refid="utility.today" />)</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="selectThisDay">SELECT<include refid="utility.thisDay" />THIS_DAY</sql>
|
|
|
|
|
<sql id="selectThisDay">SELECT<include refid="utility.thisDay" />THIS_DAY FROM DUAL</sql>
|
|
|
|
|
|
|
|
|
|
</mapper>
|