如何在 plsql 中执行类似简单数组的操作?最好用例子来解释。
让我们看看我有什么
PROCEDURE MyProcedure(name varchar2 := '', father varchar2 := '', description varchar2 := '') IS
BEGIN
UPDATE BC_ACTIONTYPEGROUP SET
ColumnName = name,
ColumnFather = father,
ColumnDecription = description
WHERE
ColumnName = name;
IF SQL%ROWCOUNT = 0 THEN
INSERT INTO TableNames (ColumnName, ColumnFather, ColumnDescription)
VALUES (name, description, father);
END IF;
END;
/
MyProcedure('John', '', 'Little John has three brothers');
MyProcedure('George', 'YES', 'George is father of John');
我需要这样的东西
MyProcedure(name=>'John', description=>'Little John has three brothers');
MyProcedure(name=>'George', father=>'YES', description=>'George is father of John');
可能吗?或者在程序中如何使用这样的东西的最简单方法是什么。
我是IT的新学生,所以感谢您的任何建议。