Sqlserver
 sql >> Base de Dados >  >> RDS >> Sqlserver

No SQL Server 2008 eu sou capaz de passar parâmetro com valor de tabela para meu procedimento armazenado do NHibernate.How to get the same in Oracle

CREATE OR REPLACE TYPE employeeType AS OBJECT (employeeId INT, employeeName VARCHAR2(50));

CREATE TYPE ttEmployeeType AS TABLE OF employeeType;

CREATE PROCEDURE testCustom (pLocation ttEmployeeType)
AS
BEGIN
        INSERT
        INTO    employee (emp_id, emp_name)
        SELECT  *
        FROM    TABLE(pLocation);
END;