摘要:
SQL标签:<trim> <where>可以处理拼接sql中 【开头】第一个and <trim>可以处理拼接sql中 【开头或结尾】第一个and 开头:给拼接的sql加prefix="where" suffixOverrides="and",处理拼接sql中开头第一个and <select id=" 阅读全文
posted @ 2020-07-08 16:36
myyismyy
阅读(229)
评论(0)
推荐(0)
摘要:
ResultMap:字段和属性名的对应关系 修改数据库列名称 alter table student1 rename column stuno to sno; alter table student1 rename column stuname to sname; alter table stude 阅读全文
posted @ 2020-07-08 15:13
myyismyy
阅读(267)
评论(0)
推荐(0)
摘要:
增加null oracle:如果插入的字段是Null,提示错误:Other而不是null mysql:如果插入的字段是Null,正常执行(没有约束) 原因:各个数据库在mybatis中对各种数据类型的默认值不一致 mybatis中,jdbcTypeForNull(如果是null),则默认值是Othe 阅读全文
posted @ 2020-07-08 13:55
myyismyy
阅读(312)
评论(0)
推荐(0)

浙公网安备 33010602011771号