一、关于联合主键的映射测试实例实体类:package com.***.comBineKey;public class Person { private Person_pk pk; private long age; public Person_pk getPk() { return pk; } p....
分类:
Web程序 时间:
2015-09-16 21:30:12
阅读次数:
145
Description:In the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want ...
分类:
其他好文 时间:
2015-09-16 19:44:09
阅读次数:
221
1.变量作用域及全局变量凡是未使用 var声明的就是全局变量,全局变量相当于window对象的属性及 var age 相当于 window.age变量作用域是以 块和function为单位的 if,while 等条件和循环语句不算,所以通常将所有的变量声明在程序的开头2.变量类型简单类型:null ...
分类:
其他好文 时间:
2015-09-16 14:03:44
阅读次数:
150
/* people = new Object(); people.name = "iwen"; people.age = "age"; document.write("name:"+people.name+",age:"+people.age);*/ /*peo...
分类:
Web程序 时间:
2015-09-16 12:44:28
阅读次数:
149
列出每个部门年龄最大的员工姓名,部门名等信息列出每个部门的员工总收入列出员工总收入大于8000的部门号,部门名称信息有哪个部门还有员工未入职按部门号大小,入职时间由早到晚排序员工信息表1.sqlite> SELECT e.e_name, MAX(e.e_age), d.name FROM emplo...
分类:
数据库 时间:
2015-09-16 12:43:43
阅读次数:
176
"张三","age"=>18)));// $open = fopen("r.txt", "a+");// $read = fread($open, filesize("r.txt"));// $arr = unserialize($read);// var_dump($arr);
分类:
Web程序 时间:
2015-09-16 00:45:16
阅读次数:
186
1.工厂模式工厂模式抽象了创建对象的过程,用函数来封装以特定接口创建对象的细节 1 function createPerson(name, age, job) { 2 var o = new Object(); 3 o.name = name; 4 o.age = age; ...
分类:
编程语言 时间:
2015-09-15 18:26:44
阅读次数:
214
1 需求 实现多条件查询用户姓名模糊匹配年龄在指定的最小值到最大值之间2 准备表和数据create table d_user( id int primary key auto_increment, name varchar(10), age int(3)); insert into d_user(n...
分类:
数据库 时间:
2015-09-15 16:13:01
阅读次数:
251
简单查询1: db.find( {}, {} ) 第一个{} 是条件,第二个{}是需要那些属性, db.find( {} ) 第二个{}没有,代表返回所有属性 db.find( {age:16} ) 返回age=16岁的所有属性 db.find( {age:16}, {"name": 1...
分类:
其他好文 时间:
2015-09-15 14:21:29
阅读次数:
100
1、XML 的实现1.1 定义SQL映射xml文件 insert into users(name, age) values(#{name}, #{age}); delete from users where id=#{id} update users set name=#{name},age=#{a...
分类:
其他好文 时间:
2015-09-15 10:42:58
阅读次数:
179