1

我的系统中有下表:

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[VCMANAGER](
    [IQID] [char](32) NOT NULL,
    [ACCOUNT] [char](32) NULL,
    [FUND] [char](32) NULL,
    [GROUPINVEST] [char](32) NULL,
    [PORTFOLIO] [char](32) NULL,
    [PROJECT] [char](32) NULL,
    [PRJGUARANTEE] [char](32) NULL,
    [KIND] [nvarchar](15) NULL,
    [MANAGERROLE] [nvarchar](15) NULL,
    [INFORMATIONS] [nvarchar](254) NULL,
    [STARTDATE] [datetime] NULL,
    [ENDDATE] [datetime] NULL,
    [PARTNER] [char](32) NULL,
    [DISPLAYINDEX] [int] NULL,
 CONSTRAINT [PK_VCMANAGER] PRIMARY KEY CLUSTERED 
(
    [IQID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

问题:如何创建一个ID以将值插入此表中?(什么去哪里???在哪里?)

insert into VCMANAGER(IQID, ACCOUNT, KIND, PARTNER)     
   select 
      ???, account, 'COLEAD', 'F817090E50AD41F4BF2F7AA55262D6B7' 
   from 
      #rainer 
   where  
      colead is null

感谢您的回答!

干杯,马库斯

4

0 回答 0