【文章內容簡介】
(gid)。視圖的創(chuàng)建create or replace view goods_info_view as select gdn,gfn,gid,gname,gremark ,gdamage,gdt,repair from goods。序列的創(chuàng)建create sequence goods_sequence increment by 1 start with 10 maxvalue 100。過程的創(chuàng)建create or replace procedure show_goodsinfo(p_gid %TYPE)asv_gdn out %TYPE,v_gfn out %TYPE。 begin select gdn(*),gremark(*) into p_gdn,p_gremark from goods where gid=p_gid。exception when no_data_found then (39。there is not such a goods!39。)。end show_goodsinfo。過程的調用declare v_gdn %TYPE。 v_gremark %TYPE。begin show_goods(10)。 return_goodsinfo(10,v_gdn,v_gremark)。 (v_gdn||39。39。v_gremark)。end。 函數(shù)的創(chuàng)建create or replace fo