摘要: 安装MySQL-5.5.27报这个错误:The installer has encountered an unexpected error installing this package.This may indicate a problem with this pa... 阅读全文
posted @ 2017-09-20 22:41 yaochunguang 阅读(920) 评论(0) 推荐(0)
摘要: 在实际的应用中,很多时候我们需要的查询条件都是一个综合的查询条件,因此我们需要对已经存在的实体进行再一次的包装,以方便我们进行查询操作,于是包装对象的作用就很明显了,在这里我举一个简单的例子1、首先是定义一个包装对象2、然后是在映射文件中编写查询sql注意:这里有个要... 阅读全文
posted @ 2017-09-20 00:20 yaochunguang 阅读(403) 评论(0) 推荐(0)
摘要: #{}:表示占位符,如果获取简单类型,#{}中可以使用value或其它名称。有效防止sql注入。使用#{}设置参数无需考虑参数的类型。如果使用#{}比较日期字段,select* from tablename where birthday >=#{birthday} ... 阅读全文
posted @ 2017-09-18 00:39 yaochunguang 阅读(153) 评论(0) 推荐(0)
摘要: 程序结构图:表结构:创表sql:Create TableCREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(200) DEFAULT NULL, `pas... 阅读全文
posted @ 2017-09-13 23:39 yaochunguang 阅读(157) 评论(0) 推荐(0)
摘要: 程序结构图:表结构;创表sql:CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(200) DEFAULT NULL, `password` varch... 阅读全文
posted @ 2017-09-13 00:57 yaochunguang 阅读(86) 评论(0) 推荐(0)
摘要: 所采用的mysql的数据库驱动版本:5.0.8mysql-connector-java-5.0.8-bin.jar程序结构图:表结构:创表sql:Create TableCREATE TABLE `users` ( `id` int(11) NOT NULL AUT... 阅读全文
posted @ 2017-09-11 00:49 yaochunguang 阅读(251) 评论(0) 推荐(0)