码迷,mamicode.com
首页 >  
搜索关键字:student    ( 6827个结果
PAT 1083
1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 struct Student{ 9 int grade;10 string name;11 string id;12...
分类:其他好文   时间:2014-11-08 21:59:55    阅读次数:121
Hibernate中createCriteria(QBC)查询的用法
现在假设有一个Student类,内有id,name,age属性? String hql =?"from Student s";? 按照以前的做法,我们通常是? Query query = session.createQuery(hql);? 或者要按照条件检索的话.? String hql =?"from S...
分类:Web程序   时间:2014-11-08 12:11:49    阅读次数:198
单链表复习
// linklist.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include using namespace std;struct student{ lo...
分类:其他好文   时间:2014-11-08 02:01:48    阅读次数:230
实验四SQL进行复杂查询
select student.sno,sname,ssex,sage,sdept,cno,gradefrom student,scwhere student.sno=sc.sno//?查询每个学生及其选课情况;select first.cno,second.cpnofrom course first...
分类:数据库   时间:2014-11-07 14:35:11    阅读次数:356
实验五SQL的常用数据更新操作
insert into student(sno,sname,sage)values ('95030','李莉',18)//插入如下学生记录(学号:95030,姓名:李莉,年龄:18)insert into sc(sno,cno)values('95030',1)//插入如下选课记录(95030,1)...
分类:数据库   时间:2014-11-07 14:26:13    阅读次数:415
数据库实验三(单表查询)
实验三:select sno,sname from student;//(1)查询全体学生的学号和姓名select * from student;//(2)查询全体学生的详细记录select sname,sage,sdept from student where sdept='...
分类:数据库   时间:2014-11-07 14:23:02    阅读次数:342
mongoDB 高级查询之取模查询$mod
http://hancang2000.i.sohu.com/blog/view/235140698.htm$mod取模运算查询age取模10等于0的数据db.student.find( { age: { $mod : [ 10 , 1 ] } } )举例如下:C1表的数据如下:> db.c1.fin...
分类:数据库   时间:2014-11-07 13:03:36    阅读次数:375
C# 根据实体类的属性动态生成字符串
情景:目前有两个实体类:Student,ClassInfo.public class Student { public string Name { get; set; } public string Sex { get; set; } public stri...
分类:Windows程序   时间:2014-11-07 09:45:46    阅读次数:414
JSONObject key 全部换为小写 复杂的json却不行??
JSONObject jsonObject = JSONObject.fromObject(student); System.out.println(jsonObject); JsonConfig config = new JsonConfig(); co...
分类:Web程序   时间:2014-11-06 19:33:15    阅读次数:361
014 一对多关联映射 单向(one-to-many)
在对象模型中,一对多的关联关系,使用集合来表示。实例场景:班级对学生;Classes(班级)和Student(学生)之间是一对多的关系。多对一、一对多的区别:多对一关联映射:在多的一端加入一个外键指向一的一端,它维护的关系是多指向一的。一对多关联映射:在多的一端加入一个外键指向一的一端,它维护的关系...
分类:其他好文   时间:2014-11-06 16:32:54    阅读次数:283
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!