首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

ORACLE函数传到TYPE参数

2012-07-24 
ORACLE函数传入TYPE参数SQL create type test_type as object(a varchar2(10),b number)2/ Type created

ORACLE函数传入TYPE参数

SQL> create type test_type as object(a varchar2(10),b number);  2  / Type created SQL> SQL> create or replace function fun_test(a in test_type) return number is  2  aa number;  3  begin  4    aa := a.b + 1;  5  return aa;  6  end;  7  / Function created SQL> select fun_test(test_type('xx', 3)) from dual; FUN_TEST(TEST_TYPE('XX',3))---------------------------                          4

热点排行