上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 1.ORM 对象关系映射(Object Relational Mapping,简称ORM)是一种为了解决面向对象与关系数据库存在的互不匹配的现象的技术。 简单的说,ORM是通过使用描述对象和数据库之间映射的元数据,将java程序中的对象自动持久化到关系数据库中。本质上就是将数据从一种形式转换到另外一 阅读全文
posted @ 2016-06-06 22:34 1011042043 阅读(1374) 评论(0) 推荐(0) 编辑
摘要: package com.example.wang.testapp3; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase 阅读全文
posted @ 2016-06-05 19:33 1011042043 阅读(236) 评论(0) 推荐(0) 编辑
摘要: package com.example.wang.testapp3; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase 阅读全文
posted @ 2016-06-03 23:03 1011042043 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 所谓事务,它是一个操作序列,这些操作要么都执行,要么都不执行,它是一个不可分割的工作单位。例如,银行转帐工作:从一个帐号扣款并使另一个帐号增款,这两个操作要么都执行,要么都不执行。 数据库事务必须具备ACID特性,ACID是Atomic(原子性)、Consistency(一致性)、Isolation 阅读全文
posted @ 2016-06-02 22:57 1011042043 阅读(3943) 评论(0) 推荐(0) 编辑
摘要: 2、 查询教师所有的单位即不重复的Depart列。 7、 以Class降序查询Student表的所有记录。 8、 以Cno升序、Degree降序查询Score表的所有记录。 10、 查询Score表中的最高分的学生学号和课程号。(子查询或者排序) 11、 查询每门课的平均成绩。 12、查询Score 阅读全文
posted @ 2016-05-31 23:27 1011042043 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1、 查询Student表中的所有记录的Sname、Ssex和Class列。 3、 查询Student表的所有记录。 4、 查询Score表中成绩在60到80之间的所有记录。 5、 查询Score表中成绩为85,86或88的记录。 6、 查询Student表中“95031”班或性别为“女”的同学记录 阅读全文
posted @ 2016-05-29 21:58 1011042043 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 为了建立冗余较小、结构合理的数据库,设计数据库时必须遵循一定的规则。在关系型数据库中这种规则就称为范式。范式是符合某一种设计要求的总结。要想设计一个结构合理的关系型数据库,必须满足一定的范式。 在实际开发中最为常见的设计范式有三个: 1.第一范式 第一范式是最基本的范式。如果数据库表中的所有字段值都 阅读全文
posted @ 2016-05-29 21:49 1011042043 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-05-28 22:30 1011042043 阅读(463) 评论(0) 推荐(0) 编辑
摘要: package com.example.wang.testapp3; import android.content.res.AssetManager; import android.graphics.Bitmap; import android.graphics.BitmapFactory; imp 阅读全文
posted @ 2016-05-28 10:21 1011042043 阅读(173) 评论(0) 推荐(0) 编辑
摘要: package com.example.wang.myapplication; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; impo 阅读全文
posted @ 2016-05-27 09:00 1011042043 阅读(889) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页