Skip to content

Instantly share code, notes, and snippets.

@jackblack369
Last active December 20, 2018 02:32
Show Gist options
  • Save jackblack369/6e8b9ccfd8b1ec3fa18998864cb4e871 to your computer and use it in GitHub Desktop.
Save jackblack369/6e8b9ccfd8b1ec3fa18998864cb4e871 to your computer and use it in GitHub Desktop.
[mybatis reference] some snippet about mybatis #mybatis
  • about date jdbcType
    #{beginDate,jdbcType=DATE} (no time of the day), or
    #{beginDate,jdbcType=TIMESTAMP} (if you need to include the time of the day).
    

And the Java parameter you want to apply should be of type:

java.sql.Date (date without time)
java.sql.Timestamp (timestamp)
java.util.Date (date and time).
  • the Greater Than/Equal Operator and the Less Than/Equal Operators:
    ROWNUM >= 20
    ROWNUM <= 20
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment