一、表完整性與約束
物體完整性:主鍵約束
域完整性
參照完整性:外鍵約束
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>
uj5u.com熱心網友回復:
樓主干嘛呢這是。又 oracle 又 android 的;
uj5u.com熱心網友回復:
LZ做的學習總結,和大家分享學習成果呢?轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/110531.html
標籤:開發
