设为首页
加入收藏
首页
C语言
C++
面试
Linux
函数
Windows
数据库
下载
搜索
我要投稿
全站搜索
文章
图片
软件
视频
商品
FLASH
产品
高级搜索
当前位置:
首页
->
基础
->
数据库编程
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
useCache="false"> select
from t_user t where t.username = #{username}
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
select
from t_user t where t.username = #{username}
[html]
view plaincopy
select
from t_user t where t.username = #{username}
[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为例
下一篇
:
数据库原理----学习目标
评论
帐 号:
密码:
(
新用户注册
)
验 证 码:
表 情:
内 容:
Copyright@https://www.cppentry.com all rights reserved
粤ICP备13067022号-3
Powered by
qibosoft V7.0
Code © 2003-11
qibosoft