码迷,mamicode.com
首页 >  
搜索关键字:student    ( 6827个结果
Sql server中内连接语句
数据库中学生表和课程表如下:内连接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 server中左连接语句
数据库中学生表和课程表如下:左连接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
2015.4.2SQL 简单语句
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
2015/4/2 sql数据库创建表 表的关联
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
python datetime 计算30天前
计算:???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
SQLite建表错误
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
mysql高级查询(转)
? 基本常用查询? --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
django FileFIeld和ImageField 上传路径改写
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!