数据库中学生表和课程表如下:内连接sql语句:select a.studentName,a.studentAge,b.courseName from student a inner join course b on a.studentID=b.studentID查询结果如下:查询的结果是以从表cou...
分类:
数据库 时间:
2015-04-03 14:55:09
阅读次数:
156
数据库中学生表和课程表如下:左连接sql语句:select a.studentName,a.studentAge,b.courseName from student a left join course b //left join 左连接,以左表为主on a.studentID=b.studentI...
分类:
数据库 时间:
2015-04-03 13:02:57
阅读次数:
192
1.创建一个student表 create table student_masen( sno char(4) not null primarykey sname nchar(10) not null sex char(1) null check('M','F') age smallint null ...
分类:
数据库 时间:
2015-04-03 11:06:52
阅读次数:
163
1.建立一个“学生”表 Studentcreate table student_muanfeng(sno char(4) primary key(主键),Sname char(20) unique(为约束),Ssex char(2) null check(sex in('M','F')),Sage ...
分类:
数据库 时间:
2015-04-03 11:01:26
阅读次数:
155
drop table zmt_s_c;drop table zmt_student;drop table zmt_course;create table zmt_student(sno char(4) primary key not null,sname nchar(10) not null,sex...
分类:
数据库 时间:
2015-04-03 10:55:35
阅读次数:
158
计算:???datetime.date.today()-datetime.timedelta(days=30)) ? ? ? ? ? ? ? ?student_module_list = StudentModule.objects.filter( ? ? ? ? ? ? ? ? ? ?course_id=course_base.course_id...
分类:
编程语言 时间:
2015-04-02 16:55:51
阅读次数:
910
1、表名、列名有效字符集:小写字母、数字、下划线,如student_course2、表名、列名用单数而不是负数,如student,而不是students3、表名、列名不使用不必要的前缀或后缀,如tbl_school,school_table4、使用整数作为ID字段,也许现在没有这个必要,但是将来需要,例如关联表,..
分类:
数据库 时间:
2015-04-02 16:38:56
阅读次数:
174
android.database.sqlite.SQLiteException: near "tab": syntax error (code 1): , while compiling: create tab student(id integer primary key autoincrement...
分类:
数据库 时间:
2015-04-02 13:20:01
阅读次数:
163
? 基本常用查询? --select? select * from student;? --all 查询所有? select all sex from student;? --distinct 过滤重复? select distinct sex from student;? --count 统计? select count(*) from s...
分类:
数据库 时间:
2015-04-01 20:28:20
阅读次数:
275
def get_file_path(instance, filename): return 'file/document/%s/%s/%s' % (instance.period.code, instance.student.college.code, filename)class Docum...
分类:
Web程序 时间:
2015-04-01 19:23:17
阅读次数:
143