码迷,mamicode.com
首页 >  
搜索关键字:student    ( 6827个结果
Hibernate(八)多对多映射
一、创建数据表--学生证表create table paper( pid number primary key, pdesc varchar2(100) , sid number references student(sid) not null ...
分类:Web程序   时间:2015-03-14 15:12:26    阅读次数:202
Hibernate之综合问题
n + 1问题 query.iterate()方式返回迭代查询会开始发出一条语句:查询所有记录ID语句      Hibernate: select student0_.id ascol_0_0_from t_student student0_ 然后有多少条记录,会发出多少条查询语句。 n + 1问题:n:有n条记录,发出n条查询语句;1 :发出一条查询所有记录ID语句。 出现n+1的原...
分类:Web程序   时间:2015-03-13 09:22:39    阅读次数:143
第九天学习内容 结构体
using System;using System.Collections;using System.Linq;using System.Text;using System.Threading.Tasks;namespace day09{ class Program { struct student...
分类:其他好文   时间:2015-03-13 09:17:17    阅读次数:124
Sql中的union和union all的讲解
SQL UNION 和 UNION ALL操作符UNION 操作符用于合并两个或多个 SELECT 语句的结果集。请注意,UNION 内部的 SELECT 语句必须拥有相同数量的列。列也必须拥有相似的数据类型。同时,每条 SELECT 语句中的列的顺序必须相同。假设我们有一个表Student,包括以...
分类:数据库   时间:2015-03-12 22:16:42    阅读次数:203
静态链表和动态链表
数据库和数据结构都要用到链表。so 复习一下C的链表(真的是忘光了)。结构体:(如果结构体中定义了结构体类型的指针,会非常适合于链表的建立)eg:struct Student{ int num ; float score; struct Student * next;};静态链表要...
分类:其他好文   时间:2015-03-12 20:39:14    阅读次数:116
【模拟】UVa 12108 - Extraordinarily Tired Students
When a student is too tired, he can't help sleeping in class, even if his favorite teacher is right here in front of him. Imagine you have a class of ...
分类:其他好文   时间:2015-03-12 20:34:18    阅读次数:912
URAL 1196. History Exam (二分)
1196. History Exam Time limit: 1.5 second Memory limit: 64 MB Professor of history decided to simplify the examination process. At the exam, every student should write a list of historic ...
分类:其他好文   时间:2015-03-12 19:19:49    阅读次数:164
实现:左边为菜单导航,当一个菜单中包含多个Tabs,并且不同的Tab要根据权限的不同显示。
1.前台代码//当点击左侧菜单时,将访问Controller中的Home方法,这样就会根据用户权限的不同,通过后台的判断来决定显示的页面 @(Html.NavListActionLink("Student Contacts", c => c.Home(), "icon-list", (bo...
分类:其他好文   时间:2015-03-12 12:58:09    阅读次数:141
一条SQL语句面试题:求选修所有课程的学生
前几天求职面试,有一道SQL题:给出三个表:学生、课程、成绩,求选修了所有课程的学生。一道看似很简单的问题,把我难住了,我改了又改,涂涂画画,抓耳挠腮,因为试卷没有多少空白位置了,最后只好放弃。心情大受影响,尽管最后还是获得offer。但是心中有愧呀!于是在机器上试了试:先建好表use test; go create table student(sno varchar(50) not null,...
分类:数据库   时间:2015-03-12 00:59:11    阅读次数:165
ORACLE SELECT INTO 防止没结果时报错
如下: BEGIN SELECT name into v_name FROM t_student WHERE id = '101' EXCEPTION WHEN NO_DATA_FOUND THEN v_name := ''; END; 这样,就不用提前先select count(1) from t_...
分类:数据库   时间:2015-03-11 19:45:20    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!