一、表完整性与约束实体完整性:主键约束
域完整性
参照完整性:外键约束SELECT constraint_name, constraint_type FROM user_constriants WHERE table_name = 'EMP';4.1、范围分区
根据表某一个列或一组列的值范围,决定该数据存储在哪个分区上。
例如:对 sales 表的 sales_cost 列值进行分区
CREATE TABLE sales
(
  ...
)
PARTTION BY RANGE (sales_cost)
(
  PARTTION P1 VALUES LESS THAN (1000),
  PARTTION P2 VALUES LESS THAN (2000),
  PARTTION P3 VALUES LESS THAN (3000),
  PARTTION P4 VALUES LESS THAN (MAXVALUE)    /* 大于3000的其他值都存储于分区 P4 */
);首先来看SwipeRefreshLayout的使用,使用很简单,看一下布局文件
[html] view plain copy 在CODE上查看代码片派生到我的代码片
 
<?xml version="1.0" encoding="utf-8"?>  
<android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"  
    xmlns:tools="http://schemas.android.com/tools"  
    android:id="@+id/swiperefresh"  
    android:layout_width="match_parent"  
    android:layout_height="match_parent"  
    tools:context="cj.com.recyclerviewdemo.RecyclerViewActivity">  
  
    <android.support.v7.widget.RecyclerView  
        android:id="@+id/my_recycler_view"  
        android:layout_width="match_parent"  
        android:layout_height="wrap_content"/>  
</android.support.v4.widget.SwipeRefreshLayout>