存储过程与Oracle中常见的数据字典的用法
一个简单的存储过程:
create or replace procedure insert_user_procedure (id in number,name in varchar2,salary in number,result out varchar2) is begin insert into t_user values(id,name,salary); result:=‘调用存储过程成功‘; Exception when others then result:= ‘调用存储过程出错: ‘ || SQLERRM; end; call insert_user_procedure(?,?,?,?)
通过数据字典查询:
select table_name from user_tables;//查询表 select sequence_name from user_sequences;//查询序列 select index_name from user_indexs;//查询索引
相关推荐
Omega 2020-08-16
zjyzz 2020-08-16
minggehenhao 2020-07-28
zhaojp0 2020-06-27
zjuwangleicn 2020-06-25
wenjieyatou 2020-06-17
liaomingwu 2020-06-16
hungzz 2020-06-16
muzirigel 2020-06-14
gsmfan 2020-06-14
ncomoon 2020-06-14
xiaobaif 2020-06-13
Rain 2020-06-12
hanshangzhi 2020-06-12
talkingDB 2020-06-12
IBMRational 2020-06-09
snowguy 2020-06-01