1、现在有四个表:student 表: teacher 表: course表: score表:表...
分类:
数据库 时间:
2015-01-31 16:07:14
阅读次数:
202
一对一关联1)需求:根据班级 id 查询班级信息(带老师的信息)2). 创建表和数据CREATE TABLE teacher(t_id INT PRIMARY KEY AUTO_INCREMENT,t_name VARCHAR(20));CREATE TABLE class(c_id INT PR....
分类:
其他好文 时间:
2015-01-28 15:56:26
阅读次数:
213
1.asp.net mvc对数据校验提供了相当方便的支持,对于前后端的校验都是这个样子。如需要校验某个字段,只需要到对应的实体类中打上响应的标签public class Teacher { [StringLength(5,ErrorMessage="*姓名长度不可超过5")] ...
分类:
Web程序 时间:
2015-01-28 00:42:39
阅读次数:
296
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1755
题意:Ms. Terry is a pre-school art teacher who likes to have her students work with clay. One of her assignments is to form a lump...
分类:
编程语言 时间:
2015-01-27 20:22:45
阅读次数:
310
1. Class1My name is PrinceLadies and gentlemen,my name is prince .I'm an excellent teacher in rocky school and my hobby is music,Ladies and gentlemen,...
分类:
其他好文 时间:
2015-01-27 10:49:41
阅读次数:
191
一:先来看一段小程序
{CSDN:CODE:589806}
二:执行结果:
new person
LiuYanliang
18
三:总结
(1)python也是面向对象的,继承也是python的一个特性
(2)python的继承,只需要在创建类的时候,传入需要继承的类class teacher(person):
(3)继承父类之后,就可以使...
分类:
编程语言 时间:
2015-01-26 22:50:14
阅读次数:
227
Math MagicTime Limit:3000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusDescriptionYesterday, my teacher taught us about math: +, -, *, ...
分类:
其他好文 时间:
2015-01-24 17:05:41
阅读次数:
161
【转载请注明出处】http://www.cnblogs.com/mashiqiToday let's talk about a intuitive explanation of Benjamini-Hochberg Procedure. My teacher Can told me this exp...
分类:
其他好文 时间:
2015-01-21 19:35:54
阅读次数:
153
题目描述:
Homework10 points
Your first-grade math teacher, Mr. Book, has just introduced you to an amazing new co...
分类:
其他好文 时间:
2015-01-21 08:59:29
阅读次数:
158
连接查询
1、内链接查询
内连接INNER JOIN使用比较运算符进行表间某些列数据的比较操作,并列出这些表中与连接条件相匹配的数据行组合成新的记录。
假设有如下两张表student,teacher
mysql> select * from student;
+----+------+-----+-------+------+---------+
| id | name | sex |...
分类:
数据库 时间:
2015-01-19 09:21:16
阅读次数:
139