16
我創建自己的表型執行存儲過程的表值參數
CREATE TYPE [dbo].[ObjectsList] AS TABLE(
[Id] [int] NOT NULL,
PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (IGNORE_DUP_KEY = OFF)
)
GO
,當我想通過這種類型的參數一樣
CREATE PROCEDURE [dbo].[GetData](@DataIds ObjectsList READONLY)
我應該如何通過它在 EXEC的GetData ????