ALTER PROCEDURE [dbo].[OA_RemoveProject] @Password nvarchar(30), --这是传入的参数 @ProjectNo nvarchar(8) AS DECLARE @ProjectId int --这是声明的参数. DECLARE @Count int BEGIN IF UPPER(@Password)='FEIFEIDEMAO' BEGIN SET @Count=(SELECT COUNT(*) FROM DwProject WHERE P…
1. 创建自定义的类型.由于Oracle没有提供现成的array类型,这里用table类型来模拟. CREATE OR REPLACE TYPE varchar_array is Table OF varchar2(4000) 2. 创建一个存储过程test1 create or replace function fun11(arr varchar_array) return number is l_str varchar2(30000); begin FOR i IN arr.fir…