MyBatis Generator的使用
对于自动生成这件事吧,我本人中立,一直没用过,主要是因为浅尝辄止,它生成的东西有些懒得看,用一下还是挺舒服的
自动生成的文件:mapper.xml 、model、dao
一、下载MyBatis Generator的核心jar包和配置文件
官网地址:http://repo1.
mysql concat函数进行模糊查询
concat() 函数,是用来连接字符串。
精确查询: select * from user where name=”zhangsan” 模糊查询; select * from user where name like “%zhang%”
在实际的使用中,条件是作为参数传递进来的。