设为首页 加入收藏

TOP

深入浅出MyBatis-MapperBuilder
2015-11-21 01:31:58 来源: 作者: 【 】 浏览:0
Tags:深入浅出 MyBatis-MapperBuilder
Mapper文件里有什么
mapper配置文件是配置sql映射的地方,它看起来就像下面这个样子:

[html] view plaincopy
size="512" readOnly="true" />
userid,username,password
insert into t_user (userid,username,password) values (#{userid},#{username},#{password})
update t_user set username= #{username},
password = #{password}, where userid = #{userid}
delete from t_user where userid = #{userid}

[html] view plaincopy
[html] view plaincopy
[html] view plaincopy
[html] view plaincopy
userid,username,password [html] view plaincopy
[html] view plaincopy
[html] view plaincopy
insert into t_user (userid,username,password)
values (#{userid},#{username},#{password})
update t_user set
username = #{username}, password = #{password},
where userid = #{userid}
delete from t_user where userid = #{userid}
[html] view plaincopy
select CAST(RANDOM()*1000000 as INTEGER) a from SYSIBM.SYSDUMMY1
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇建索引的原则-以innodb为例 下一篇数据库原理----学习目标

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: