Sqlserver表タイプと表変数の紹介
,
:
CREATE TYPE dbo.SubCardTable as table
(
[SC_ID] [varchar](50),
[ZhuKaInfo_ID] [varchar](50),
[Project_KeyName] [varchar](50),
[SC_CardNumber] [varchar](50),
[Statues] [int] DEFAULT 0,
[SC_AddTime] [datetime],
[SC_AddPerson] [varchar](50),
[SC_Money] [int],
[MainCardReceiveIntegral] [int] DEFAULT 0,
[SC_RelationCustom] [varchar](50),
[SC_UseTime] [datetime]
)
sqlserver2005 ,
:
@declare @mtTable table(id int, [name] varchar(10))