摘要: 前言: mybatis框架中最具特色的便是sql语句中的自定义,而动态sql的使用又使整个框架更加灵活。 创建User表 /*Table structure for table `user` */ DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( 阅读全文
posted @ 2018-07-21 13:11 ~沐风 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 序言 在mybatis中,参数取值方式有两种:#{ } 和 ${ } 一、#{ } select * from student where name=#{name} 编译后执行的sql语句: select * from student where name=? 说明: #{ }实现的是JDBC 中p 阅读全文
posted @ 2018-07-21 13:03 ~沐风 阅读(352) 评论(0) 推荐(0) 编辑