select *from lol--top 关键字select top 3 *from lol--查询前三行 select top 3 *from lol where age>22 --加入条件select top 3 name,wuqi from lol where age>22 ----关键字 ...
分类:
数据库 时间:
2015-04-20 20:47:24
阅读次数:
122
create database mmmcreate table xxx(code int primary key identity(1,1),name varchar(50) not null,sex varchar(50) not null,age int not null,hight decim...
分类:
数据库 时间:
2015-04-20 16:25:04
阅读次数:
142
Problem Description:
Suppose there are N people in ZJU, whose ages are unknown. We have some messages about them. The
i-th message shows that the age of person si is not smaller than the age of pers...
分类:
移动开发 时间:
2015-04-20 09:30:01
阅读次数:
149
JSON字符串转化为JSON对象的2种方式一、使用函数eval1 var personsstr = '[{"Name":"zhangsan","Age":26},{"Name":"lisi","Age":26}]';2 var personsjson = eval(p...
分类:
编程语言 时间:
2015-04-20 09:19:33
阅读次数:
183
namespace ConsoleApplication22{ class Program { struct s { public string name; public int age; } ...
分类:
编程语言 时间:
2015-04-19 17:36:23
阅读次数:
131
1、条件:age = 3if age >= 18: print 'adult'elif age >= 6: print 'teenager'else: print 'kid'不能少了: elif2、循环一种是for ...in...names = ['Machael','Bob',...
分类:
编程语言 时间:
2015-04-19 17:27:18
阅读次数:
158
1 //=================method 工厂模式================ 2 var Person = function (name, age) { 3 var object = {}; 4 5 object.name = name; ...
分类:
编程语言 时间:
2015-04-19 13:14:06
阅读次数:
160
测试用例表如下:1.取2个成员表中的交集(A∩B)T-SQL:select Member1.Name,Member1.Age from Member1 join Member2 on Member1.Name=Member2.Nameselect * from Member1 intersect s...
分类:
数据库 时间:
2015-04-19 13:01:00
阅读次数:
168
点语法本质#import
#import "Person.h"int main(int argc, const char * argv[])
{
Person *p = [Person new]; // 点语法的本质还是方法调用
p.age = 10; // [p setAge:10]; int a = p.age; /...
分类:
其他好文 时间:
2015-04-19 10:18:24
阅读次数:
138
自定义构造方法@interface Person : NSObject
@property NSString *name;
@property int age;/*
自定义构造方法的规范
1.一定是对象方法,一定以 - 开头
2.返回值一般是id类型
3.方法名一般以initWith开头
*/- (id)initWithName:(NSString *)name;- (id)initWith...
分类:
其他好文 时间:
2015-04-19 10:15:06
阅读次数:
260