1,顯示物件型別的資訊–user_types
select type_name,attributes,final from user_types where type_name =』person_typ9』 ;
desc person_typ9;
2,增加和刪除物件型別的屬性
alter type person_typ9 add attribute
age number(4) cascade;–級聯
alter type person_typ9 drop attribute age cascade;
select * from employee_tab9;
3,新增和刪除物件方法
alter type person_typ9 add
member function get_name return varchar2
cascade;
create or replace type body person_typ9 as
member function get_name return varchar2
is begin
return name;
end;
end;
修改表
–新增一列
alter table emp add age varchar2(11) ;
alter table emp add constraint –新增約束條件
age check(age<100) ;
alter table emp drop constraint age ; –刪除約束條件
自建表型別和維護
今天又新建一張自建表,學到了幾個地方關於表的維護和定義的,如下圖 表有好幾種型別,目前只對c和a了解點,c型別是客戶維護的表,如果在裡面維護了資料,不是跨client的話,內容必須要傳輸才能到另外乙個client。2.data browser table view maint.這裡定義了可以用標準 ...
python物件型別 Python物件型別
因為python3.0與python2.x在語法等方面還是有一定的差別,而我的系統中裝的是python2.7,因此筆記基本已python2.7版本為主。python 中的變數是動態的,而非靜態的。意思就是說,在變數賦值之前無需進行變數型別的定義,賦給變數什麼型別,它就是什麼型別的。事實上,在pyth...
物件與型別
結構 struct 在記憶體中的儲存地點是 棧 stack 類 class 在記憶體中的儲存地點是 堆 heap 示例 struct retangle public double width public double height public retangle double width,doub...